In WPF, this was possible using FormattedText, like this:
private Size MeasureString(string candidate) { var formattedText = new FormattedText( c
If you are having issues in UWP with Size not resolving or working properly with double's. It is probably because you are using System.Drawing.Size.
Size
System.Drawing.Size
Use Windows.Foundation.Size instead.
Windows.Foundation.Size