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)); }
public void OnDidChangeScreenParameters(NSNotification notification) { var metrics = GetMainDisplayInfo(); MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics)); }
void WindowDisplayPropertiesChanged() { var metrics = GetMainDisplayInfo(); MainDisplayInfoChanged?.Invoke(this, new DisplayInfoChangedEventArgs(metrics)); }