DispatcherFrame Constructor (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

public DispatcherFrame(
	bool exitWhenRequested


Type: System.Boolean

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

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 request to exit.

.NET Framework
Available since 3.0
Return to top