Redigera

Dela via


DispatcherFrame Constructors

Definition

Initializes a new instance of the DispatcherFrame class.

Overloads

DispatcherFrame()

Initializes a new instance of the DispatcherFrame class.

DispatcherFrame(Boolean)

Initializes a new instance of the DispatcherFrame class, by using the specified exit request flag.

DispatcherFrame()

Initializes a new instance of the DispatcherFrame class.

public:
 DispatcherFrame();
public DispatcherFrame ();
Public Sub New ()

See also

Applies to

DispatcherFrame(Boolean)

Initializes a new instance of the DispatcherFrame class, by using the specified exit request flag.

public:
 DispatcherFrame(bool exitWhenRequested);
public DispatcherFrame (bool exitWhenRequested);
new System.Windows.Threading.DispatcherFrame : bool -> System.Windows.Threading.DispatcherFrame
Public Sub New (exitWhenRequested As Boolean)

Parameters

exitWhenRequested
Boolean

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

Remarks

DispatcherFrame typically fall into two categories:

  • Long running, general purpose frames, that exit only when instructed to. These frames should exit when they are requested.

  • Short running, very specific frames that exit when an important criteria is met. These frames may consider not exiting when they are requested in favor of waiting for their exit criteria to be met. These frames should have a time-out associated with them.

At application shutdown, all frames are requested to exit.

See also

Applies to