Open sandboxFocus

Class WpfDispatcherFactory

Provides access to the WPF Dispatcher without a direct dependency on WindowsBase.dll. The dispatcher is found only if WindowsBase.dll is already loaded into the AppModel by another assembly.

Inheritance
WpfDispatcherFactory
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public static class WpfDispatcherFactory

Methods

Name Description
GetDispatcher(Dispatcher)

Returns the IDispatcher wrapper for a given WPF Dispatcher.

TryGetWpfDispatcher()

Returns the current WPF Dispatcher, or null if there is no current dispatcher.