Share via


VsUIDialogWindow Class

Dialog class to be used as base class for Visual Studio dialogs used with IVsUIDataSources

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Public Class VsUIDialogWindow _
    Inherits DialogWindowBase
‘사용 방법
Dim instance As VsUIDialogWindow
public class VsUIDialogWindow : DialogWindowBase
public ref class VsUIDialogWindow : public DialogWindowBase
type VsUIDialogWindow =  
    class
        inherit DialogWindowBase
    end
public class VsUIDialogWindow extends DialogWindowBase

Remarks

Someone implementing a dialog derived from this class should define a UI Factory (IVsUIFactory implementer) and expose the dialog as an UI Element creatable by the factory. Whoever wants to display the dialog should create a data source for the dialog (IVsUIDataSource implementer) possibly by using a data source factory. Use WindowHelper.AddHelpTopic function to add a help topic to the data source. Then call WindowHelper.ShowModalElement() and provide the element ID and the data source.

Inheritance Hierarchy

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      System.Windows.Media.Visual
        System.Windows.UIElement
          System.Windows.FrameworkElement
            System.Windows.Controls.Control
              System.Windows.Controls.ContentControl
                System.Windows.Window
                  Microsoft.VisualStudio.PlatformUI.DialogWindowBase
                    Microsoft.VisualStudio.PlatformUI.VsUIDialogWindow

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

VsUIDialogWindow Members

Microsoft.VisualStudio.PlatformUI Namespace