IWebMatrixHost.ShowDialog Method (String, UIElement, DialogSize, MessageBoxButton, MessageBoxResult, ICommand())
Applies to v2.
Indicates a value whether the command will show a dialog command.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function ShowDialog ( _
title As String, _
content As UIElement, _
dialogSize As DialogSize, _
buttons As MessageBoxButton, _
defaultButton As MessageBoxResult, _
buttonCommands As ICommand() _
) As Nullable(Of Boolean)
'Usage
Dim instance As IWebMatrixHost
Dim title As String
Dim content As UIElement
Dim dialogSize As DialogSize
Dim buttons As MessageBoxButton
Dim defaultButton As MessageBoxResult
Dim buttonCommands As ICommand()
Dim returnValue As Nullable(Of Boolean)
returnValue = instance.ShowDialog(title, _
content, dialogSize, buttons, defaultButton, _
buttonCommands)
Nullable<bool> ShowDialog(
string title,
UIElement content,
DialogSize dialogSize,
MessageBoxButton buttons,
MessageBoxResult defaultButton,
ICommand[] buttonCommands
)
Nullable<bool> ShowDialog(
String^ title,
UIElement^ content,
DialogSize dialogSize,
MessageBoxButton buttons,
MessageBoxResult defaultButton,
array<ICommand^>^ buttonCommands
)
abstract ShowDialog :
title:string *
content:UIElement *
dialogSize:DialogSize *
buttons:MessageBoxButton *
defaultButton:MessageBoxResult *
buttonCommands:ICommand[] -> Nullable<bool>
function ShowDialog(
title : String,
content : UIElement,
dialogSize : DialogSize,
buttons : MessageBoxButton,
defaultButton : MessageBoxResult,
buttonCommands : ICommand[]
) : Nullable<boolean>
Parameters
title
Type: System.StringThe title of the dialog box.
content
Type: System.Windows.UIElementThe content of the dialog.
dialogSize
Type: Microsoft.WebMatrix.Extensibility.DialogSizeThe dialog resolution.
buttons
Type: System.Windows.MessageBoxButtonThe buttons in the box.
defaultButton
Type: System.Windows.MessageBoxResultThe default button.
buttonCommands
Type: System.Windows.Input.ICommand()The button commands.
Return Value
Type: System.Nullable<Boolean>
true if the command will show a dialog box; otherwise, false.