Describes the priorities at which operations can be invoked by way of the Dispatcher.
Public Enumeration DispatcherPriority
Dim instance As DispatcherPriority
public enum DispatcherPriority
public enum class DispatcherPriority
This managed class is not typically used in XAML.
There is no specific system state or "idleness" corresponding to ApplicationIdle and ContextIdle in the current version of WPF. Both are still valid priorities; therefore, an operation with a priority of ContextIdle has a higher priority than an operation with a priority of SystemIdle.
The Dispatcher does not throttle the execution of an operation if it exceeds a certain percentage of the CPU. One way to throttle a process it to use a timer.
If an operation is posted using Invoke on its own Dispatcher at a priority of Send, the operation bypasses the queue and is immediately executed.
The following example is a call to BeginInvoke that passes a delegate which accepts an argument. The priority is set to Normal.
// Schedule the update function in the UI thread. tomorrowsWeather.Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, new OneArgDelegate(UpdateUserInterface), weather);
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003