Skip to main content

DispatcherPriority Structure

Defines the priorities with which jobs can be invoked on a Dispatcher.

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public readonly struct DispatcherPriority : IEquatable<DispatcherPriority>, 
IComparable<DispatcherPriority>
View Source
InheritanceObjectValueType → DispatcherPriority
ImplementsIComparable(DispatcherPriority), IEquatable(DispatcherPriority)

Properties

ValueThe integer value of the priority

Methods

CompareTo(DispatcherPriority)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Equals(DispatcherPriority)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
FromValue(Int32) 
GetHashCode()Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()
(Overrides ValueType.ToString())
Validate(DispatcherPriority, String) 

Operators

Equality(DispatcherPriority, DispatcherPriority) 
GreaterThan(DispatcherPriority, DispatcherPriority) 
GreaterThanOrEqual(DispatcherPriority, DispatcherPriority) 
Implicit(DispatcherPriority to Int32) 
Implicit(Int32 to DispatcherPriority) 
Inequality(DispatcherPriority, DispatcherPriority) 
LessThan(DispatcherPriority, DispatcherPriority) 
LessThanOrEqual(DispatcherPriority, DispatcherPriority) 

Fields

ApplicationIdleThe job will be processed when the application is idle.
BackgroundThe job will be processed after other non-idle operations have completed.
ContextIdleThe job will be processed after background operations have completed.
DefaultThe lowest foreground dispatcher priority
InactiveA dispatcher priority for jobs that shouldn't be executed yet
InputThe job will be processed with the same priority as input.
InvalidUsed internally in dispatcher code
LoadedThe job will be processed after layout and render but before input.
MaxValueMaximum possible priority
NormalThe job will be processed with normal priority.
RenderThe job will be processed with the same priority as render.
SendThe job will be processed before other asynchronous operations.
SystemIdleThe job will be processed when the system is idle.

See Also

Reference

Avalonia.Threading Namespace