Struct DispatcherPriority
Defines the priorities with which jobs can be invoked on a Dispatcher.
public readonly struct DispatcherPriority : IEquatable<DispatcherPriority>, IComparable<DispatcherPriority>
- Implements
- Inherited Members
Fields
ApplicationIdle
The job will be processed when the application is idle.
public static readonly DispatcherPriority ApplicationIdle
Field Value
AsyncRenderTargetResize
A special priority for platforms that resize the render target in asynchronous-ish matter, should be changed into event grouping in the platform backend render
[PrivateApi]
public static readonly DispatcherPriority AsyncRenderTargetResize
Field Value
Background
The job will be processed after other non-idle operations have completed.
public static readonly DispatcherPriority Background
Field Value
BeforeRender
A special platform hook for jobs to be executed before the normal render cycle
[PrivateApi]
public static readonly DispatcherPriority BeforeRender
Field Value
ContextIdle
The job will be processed after background operations have completed.
public static readonly DispatcherPriority ContextIdle
Field Value
Default
The lowest foreground dispatcher priority
public static readonly DispatcherPriority Default
Field Value
Inactive
A dispatcher priority for jobs that shouldn't be executed yet
public static readonly DispatcherPriority Inactive
Field Value
Input
The job will be processed with the same priority as input.
public static readonly DispatcherPriority Input
Field Value
Invalid
Used internally in dispatcher code
public static readonly DispatcherPriority Invalid
Field Value
Loaded
The job will be processed after layout and render but before input.
public static readonly DispatcherPriority Loaded
Field Value
MaxValue
Maximum possible priority
public static readonly DispatcherPriority MaxValue
Field Value
Normal
The job will be processed with normal priority.
public static readonly DispatcherPriority Normal
Field Value
Render
The job will be processed with the same priority as render.
public static readonly DispatcherPriority Render
Field Value
Send
The job will be processed before other asynchronous operations.
public static readonly DispatcherPriority Send
Field Value
SystemIdle
The job will be processed when the system is idle.
public static readonly DispatcherPriority SystemIdle
Field Value
UiThreadRender
A special priority for platforms with UI render timer or for forced full rasterization requests
[PrivateApi]
public static readonly DispatcherPriority UiThreadRender
Field Value
Properties
Value
The integer value of the priority
public int Value { get; }
Property Value
Methods
CompareTo(DispatcherPriority)
public int CompareTo(DispatcherPriority other)
Parameters
other
DispatcherPriority
Returns
Equals(DispatcherPriority)
public bool Equals(DispatcherPriority other)
Parameters
other
DispatcherPriority
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
FromValue(int)
public static DispatcherPriority FromValue(int value)
Parameters
value
int
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Validate(DispatcherPriority, string)
public static void Validate(DispatcherPriority priority, string parameterName)
Parameters
priority
DispatcherPriorityparameterName
string
Operators
operator ==(DispatcherPriority, DispatcherPriority)
public static bool operator ==(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority
Returns
operator >(DispatcherPriority, DispatcherPriority)
public static bool operator >(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority
Returns
operator >=(DispatcherPriority, DispatcherPriority)
public static bool operator >=(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority
Returns
implicit operator int(DispatcherPriority)
public static implicit operator int(DispatcherPriority priority)
Parameters
priority
DispatcherPriority
Returns
implicit operator DispatcherPriority(int)
public static implicit operator DispatcherPriority(int value)
Parameters
value
int
Returns
operator !=(DispatcherPriority, DispatcherPriority)
public static bool operator !=(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority
Returns
operator <(DispatcherPriority, DispatcherPriority)
public static bool operator <(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority
Returns
operator <=(DispatcherPriority, DispatcherPriority)
public static bool operator <=(DispatcherPriority left, DispatcherPriority right)
Parameters
left
DispatcherPriorityright
DispatcherPriority