mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-19 22:24:18 +00:00
Dynamic Element Sizes
This commit is contained in:
@@ -11,7 +11,9 @@ namespace qController
|
||||
public static string QFont;
|
||||
public static DisplayInfo mainDisplayInfo;
|
||||
public static double Height;
|
||||
public static double Width;
|
||||
public static double Width;
|
||||
public static double HeightUnit;
|
||||
public static double WidthUnit;
|
||||
public static bool MenuIsPresented
|
||||
{
|
||||
get
|
||||
@@ -33,7 +35,9 @@ namespace qController
|
||||
|
||||
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
|
||||
Height = mainDisplayInfo.Height / mainDisplayInfo.Density;
|
||||
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
|
||||
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
|
||||
HeightUnit = Height / 100.0;
|
||||
WidthUnit = Width / 100.0;
|
||||
System.Console.WriteLine(Height);
|
||||
System.Console.WriteLine(Width);
|
||||
switch (Device.RuntimePlatform)
|
||||
|
||||
Reference in New Issue
Block a user