Version

ShowDialog Method

Displays a ToolWindow modally
Syntax
'Declaration
 
Public Sub ShowDialog( _
   ByVal owner As FrameworkElement, _
   ByVal callback As ToolWindow.ShowDialogCallback _
) 
public void ShowDialog( 
   FrameworkElement owner,
   ToolWindow.ShowDialogCallback callback
)

Parameters

owner
The owning element. This element will be used to determine the owner of the window or adorner layer depending upon how the content will be shown.
callback
The callback used to indicate when the dialog has been closed and provide the dialog result. This is needed because the call may not be blocking. For example, when used in an xbap environment, the method will return before the dialog has been closed. In this case, the callback will be called when the dialog is closed.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also