Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Window.Dispatcher Property

Definition

Namespace:
Microsoft.UI.Xaml

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.

[Deprecated] Always returns null.

public:
 property CoreDispatcher ^ Dispatcher { CoreDispatcher ^ get(); };
CoreDispatcher Dispatcher();
/// [get: Windows.Foundation.Metadata.Deprecated("The Dispatcher property is deprecated and always returns null", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
CoreDispatcher Dispatcher();
public CoreDispatcher Dispatcher { get; }
public CoreDispatcher Dispatcher { [Windows.Foundation.Metadata.Deprecated("The Dispatcher property is deprecated and always returns null", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; }
var coreDispatcher = window.dispatcher;
Public ReadOnly Property Dispatcher As CoreDispatcher

Property Value

Always null.

Attributes

Remarks

Important

Window.Dispatcher may be altered or unavailable in future releases. Use Window.DispatcherQueue instead.

Note

The XAML Window class has several properties that were carried over from the UWP Windows.UI.Xaml.Window class, but are not supported in WinUI apps. These properties always have a null value and are not used in WinUI apps. For more info, see Windowing functionality migration.

Applies to

See also


Feedback

Was this page helpful?