INNER CODE UNIT · C#
s
Eppie-io/Eppie-App · src/Eppie.App/Eppie.App.Shared/App.xaml.cs:432
var s = desiredScale / systemScale;
return s <= 0 ? DefaultScale : s;
}
protected static void ApplyContentScale(FrameworkElement content, double scale, Size clientSize)
{
if (content is null)
{
return;
}
if (scale <= 0)
{
scale = DefaultScale;
}
content.HorizontalAlignment = HorizontalAlignment.Left;
content.VerticalAlignment = VerticalAlignment.Top;