示例#1
0
        void OnDisplayInformationChanged(DisplayInformation di, object args)
        {
            var metrics = GetMainDisplayInfo(di);

            MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics));
        }
        void OnScreenMetricsChanged()
        {
            var metrics = GetMainDisplayInfo();

            MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics));
        }
示例#3
0
        public void OnDidChangeScreenParameters(NSNotification notification)
        {
            var metrics = GetMainDisplayInfo();

            MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics));
        }
示例#4
0
        void WindowDisplayPropertiesChanged()
        {
            var metrics = GetMainDisplayInfo();

            MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics));
        }