DisplayArea.CreateWatcher Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a DisplayAreaWatcher
that notifies when a DisplayArea
or the collection of display areas has changed.
public:
static DisplayAreaWatcher ^ CreateWatcher();
static DisplayAreaWatcher CreateWatcher();
public static DisplayAreaWatcher CreateWatcher();
function createWatcher()
Public Shared Function CreateWatcher () As DisplayAreaWatcher
Returns
A new instance of DisplayAreaWatcher
.
Remarks
A DisplayAreaWatcher enumerates DisplayArea objects and raises events when the collection of display areas changes, or if the configuration of an individual DisplayArea
has changed.
Note
You must create the DisplayAreaWatcher
on a UI thread.