示例#1
0
 static void OnMainDisplayInfoChanged(DeviceDisplayInfo metrics)
 => OnMainDisplayInfoChanged(new DisplayInfoChangedEventArgs(metrics));
示例#2
0
 public DisplayInfoChangedEventArgs(DeviceDisplayInfo displayInfo) =>
示例#3
0
        //public static bool KeepScreenOn
        //{
        //    get => PlatformKeepScreenOn;
        //    set => PlatformKeepScreenOn = value;
        //}

        //public static DisplayInfo MainDisplayInfo => GetMainDisplayInfo();

        static void SetCurrent(DeviceDisplayInfo metrics) =>
        currentMetrics = new DeviceDisplayInfo(metrics.Width, metrics.Height, metrics.Density, metrics.Orientation,
                                               metrics.Rotation, metrics.Xdpi, metrics.Ydpi);