When used overload of MeasureText(String, Font, Size, TextFormatFlags) with flags TextFormatFlags.PathEllipsis | TextFormatFlags.ModifyStringthe resulting string ends with a null char followed by an arbitrary chunk of the original path.For example, the original string is d:\\abcd\\efgh\\ijkl\\yzAB\\CDEF\\GHIJ\\KLMN\\OPQR\\STIV\\WXYZ\\test.txtand the modified string isd:\\abcd\\efgh\\ijkl\\...\\test.txt\0F\\GHIJ\\KLMN\\OPQR\\STIV\\WXYZ\\test.txtA possible workaround is:result = result.Substring(0, result.IndexOf('\0'));to truncate from the null char.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results