Skip to main content

DispatcherPriority Struct

Definition

Assembly:Avalonia.Base
Package:Avalonia

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

public struct DispatcherPriority

Inheritance: ValueType -> DispatcherPriority

Implements: IComparable<DispatcherPriority>, IEquatable<DispatcherPriority>

Methods

NameDescription
CompareToNo summary available.
Equals (2 overloads)No summary available.
FromValueNo summary available.
GetHashCodeNo summary available.
ToStringNo summary available.
ValidateNo summary available.

CompareTo Method

public int CompareTo(Avalonia.Threading.DispatcherPriority other)

Parameters

other Avalonia.Threading.DispatcherPriority

Returns

int

Equals overloads

Equals Method

public bool Equals(Avalonia.Threading.DispatcherPriority other)
Parameters

other Avalonia.Threading.DispatcherPriority

Returns

bool

Equals Method

public bool Equals(object obj)
Parameters

obj object

Returns

bool

FromValue Method

public Avalonia.Threading.DispatcherPriority FromValue(int value)

Parameters

value int

Returns

Avalonia.Threading.DispatcherPriority

GetHashCode Method

public int GetHashCode()

Returns

int

ToString Method

public string ToString()

Returns

string

Validate Method

public void Validate(Avalonia.Threading.DispatcherPriority priority, string parameterName)

Parameters

priority Avalonia.Threading.DispatcherPriority

parameterName string

Properties

NameDescription
ValueThe integer value of the priority

Value Property

The integer value of the priority

public int Value { get; set; }

Fields

NameDescription
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.
DataBindThe job will be processed with the same priority as data binding.
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.

ApplicationIdle Field

The job will be processed when the application is idle.

public Avalonia.Threading.DispatcherPriority ApplicationIdle

Background Field

The job will be processed after other non-idle operations have completed.

public Avalonia.Threading.DispatcherPriority Background

ContextIdle Field

The job will be processed after background operations have completed.

public Avalonia.Threading.DispatcherPriority ContextIdle

DataBind Field

The job will be processed with the same priority as data binding.

public Avalonia.Threading.DispatcherPriority DataBind

Default Field

The lowest foreground dispatcher priority

public Avalonia.Threading.DispatcherPriority Default

Inactive Field

A dispatcher priority for jobs that shouldn't be executed yet

public Avalonia.Threading.DispatcherPriority Inactive

Input Field

The job will be processed with the same priority as input.

public Avalonia.Threading.DispatcherPriority Input

Invalid Field

Used internally in dispatcher code

public Avalonia.Threading.DispatcherPriority Invalid

Loaded Field

The job will be processed after layout and render but before input.

public Avalonia.Threading.DispatcherPriority Loaded

MaxValue Field

Maximum possible priority

public Avalonia.Threading.DispatcherPriority MaxValue

Normal Field

The job will be processed with normal priority.

public Avalonia.Threading.DispatcherPriority Normal

Render Field

The job will be processed with the same priority as render.

public Avalonia.Threading.DispatcherPriority Render

Send Field

The job will be processed before other asynchronous operations.

public Avalonia.Threading.DispatcherPriority Send

SystemIdle Field

The job will be processed when the system is idle.

public Avalonia.Threading.DispatcherPriority SystemIdle