DisplayAreaWatcher 類別

定義

列舉顯示區域,並在集合顯示區域或個別 DisplayArea 變更時引發事件。

public ref class DisplayAreaWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayAreaWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplayAreaWatcher
Public NotInheritable Class DisplayAreaWatcher
繼承
Object Platform::Object IInspectable DisplayAreaWatcher
屬性

備註

若要建立 DisplayAreaWatcher ,請呼叫 DisplayArea.CreateWatcher。 您必須在 UI 執行緒上建立 DisplayAreaWatcher

屬性

Status

取得 的狀態 DisplayAreaWatcher

方法

Start()

啟動 DisplayAreaWatcher

Stop()

停止 DisplayAreaWatcher

事件

Added

發生于 將 加入至 所 DisplayArea.FindAll 傳回之顯示區域的集合時 DisplayArea

EnumerationCompleted

發生于已處理監看員事件的初始階段,且顯示區域集合完成時。

Removed

發生于 從 所 DisplayArea.FindAll 傳回的集合中移除 時 DisplayArea

Stopped

發生于 已停止時 DisplayAreaWatcher

Updated

發生于 的 DisplayArea 組態已變更時。

適用於

另請參閱