共用方式為


IDeviceDisplay.MainDisplayInfoChanged 事件

定義

發生於主要顯示的信息變更時。

public:
 event EventHandler<Microsoft::Maui::Devices::DisplayInfoChangedEventArgs ^> ^ MainDisplayInfoChanged;
event EventHandler<Microsoft.Maui.Devices.DisplayInfoChangedEventArgs> MainDisplayInfoChanged;
member this.MainDisplayInfoChanged : EventHandler<Microsoft.Maui.Devices.DisplayInfoChangedEventArgs> 
Event MainDisplayInfoChanged As EventHandler(Of DisplayInfoChangedEventArgs) 

事件類型

適用於