How to Calculate String Length in Pixels in uwp in C#?
I found some answers to my question for previous versions, but not for UWP (Windows 10).
How to Calculate String Length in Pixels in uwp in C#?
I found some answers to my question for previous versions, but not for UWP (Windows 10).
If you use xaml, you can create the textblock with your string, then call 'Measure' method. Following SO post may helps you.
How can I measure the Text Size in UWP Apps?
or if you using win2d,