Skip to main content

DispatcherFrame Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Representation of Dispatcher frame.

public class DispatcherFrame

Inheritance: object -> DispatcherFrame

Constructors

NameDescription
DispatcherFrame (2 overloads)Constructs a new instance of the DispatcherFrame class.

DispatcherFrame overloads

DispatcherFrame Constructor

Constructs a new instance of the DispatcherFrame class.

public DispatcherFrame()

DispatcherFrame Constructor

Constructs a new instance of the DispatcherFrame class.

public DispatcherFrame(bool exitWhenRequested)
Parameters

exitWhenRequested bool

Indicates whether or not this frame will exit when all frames are requested to exit.

Dispatcher frames typically break down into two categories:

  1. Long running, general purpose frames, that exit only when told to. These frames should exit when requested.
  2. Short running, very specific frames that exit themselves when an important criteria is met. These frames may consider not exiting when requested in favor of waiting for their important criteria to be met. These frames should have a timeout associated with them.

Properties

NameDescription
ContinueIndicates that this dispatcher frame should exit.
DispatcherNo summary available.

Continue Property

Indicates that this dispatcher frame should exit.

public bool Continue { get; set; }

Dispatcher Property

public Avalonia.Threading.Dispatcher Dispatcher { get; set; }