Skip to content

Instantly share code, notes, and snippets.

@pm64

pm64/PaintUtils.cs Secret

Created Aug 7, 2020
Embed
What would you like to do?
public static class PaintUtils
{
public interface ICalculateTextWidth
{
double CalculateWidth(string text);
}
public static double GetTextWidth(string text)
{
return DependencyService.Get<ICalculateTextWidth>().CalculateWidth(text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment