Shows a page in a task dialog once the current event handler has returned.
Class: SftTaskDialog
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public static Task<SftTaskDialogButton> ShowDialogAsync( SftTaskDialogPage page, SftTaskDialogStartupLocation startupLocation ); public static Task<SftTaskDialogButton> ShowDialogAsync( IWin32Window owner, SftTaskDialogPage page, SftTaskDialogStartupLocation startupLocation ); public static Task<SftTaskDialogButton> ShowDialogAsync( IntPtr hwndOwner, SftTaskDialogPage page, SftTaskDialogStartupLocation startupLocation );
Public Shared Function ShowDialogAsync(
ByVal page As SftTaskDialogPage,
ByVal startupLocation As SftTaskDialogStartupLocation
) As Task(Of SftTaskDialogButton)
Public Shared Function ShowDialogAsync(
ByVal owner As IWin32Window,
ByVal page As SftTaskDialogPage,
ByVal startupLocation As SftTaskDialogStartupLocation
) As Task(Of SftTaskDialogButton)
Public Shared Function ShowDialogAsync(
ByVal hwndOwner As IntPtr,
ByVal page As SftTaskDialogPage,
ByVal startupLocation As SftTaskDialogStartupLocation
) As Task(Of SftTaskDialogButton)page
The page to show; null throws an ArgumentNullException.
startupLocation
Where the dialog appears. The default is SftTaskDialogStartupLocation.CenterScreen.
owner
The window that owns the dialog.
hwndOwner
The handle of the window that owns the dialog, or IntPtr.Zero for none.
A task that completes with the button that closed the dialog, or SftTaskDialogButton.Cancel when it was closed with Esc, the close box or Close.
Shows a page in a task dialog once the current event handler has returned.
This overload shows the dialog without an owner. The dialog is shown through the SynchronizationContext of the user interface thread, so the calling code continues, or awaits the task, while it is shown.
See Also SftTaskDialog Class | Classes | SftStyle/NET 3.0