MediaCenterEnvironment.DirectXExclusive Property
Gets or sets a value that indicates whether Windows Media Center is running in DirectX exclusive mode.
Syntax
public bool DirectXExclusive {get; set;}
Property Value
System.Boolean. If true, Windows Media Center is running in DirectX exclusive mode; otherwise, false.
This property is read/write.
Remarks
DirectX exclusive mode is a feature of the Microsoft DirectX API that enables the windowing system to be suspended so that drawing can be done directly to the screen. Exclusive mode allows Windows Media Center to take advantage of hardware acceleration for enhanced video performance.
Moving in or out of DirectX exclusive mode can take a second or two. When a mode change is initiated, the DirectXExclusive property may indicate the new state prematurely (before the video card has completed the mode switch) because of latencies in the DirectX system. For this reason, simply checking the DirectXExclusive property may return inaccurate results. For pages that enter or exit exclusive mode when they are loaded, any code requiring the page to be in a particular mode should be performed after a delay, to allow for the transition to complete.
Requirements
Reference: Microsoft.MediaCenter
Namespace: Microsoft.MediaCenter
Assembly: Microsoft.MediaCenter.dll
Platform: Windows 7
See Also