IWebMatrixHost.ShowDialog-Methode (String, UIElement, DialogSize, MessageBoxButton, MessageBoxResult, array<ICommand )
Die folgenden Ausführungen gelten für v2.
Gibt einen Wert an, der bestimmt, ob der Befehl einen Dialogfeldbefehl anzeigt.
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>
Parameter
title
Typ: System.StringDer Titel des Dialogfelds.
content
Typ: System.Windows.UIElementDer Inhalt des Dialogfelds.
dialogSize
Typ: Microsoft.WebMatrix.Extensibility.DialogSizeDie Dialogfeldauflösung.
buttons
Typ: System.Windows.MessageBoxButtonDie Schaltflächen im Dialogfeld.
defaultButton
Typ: System.Windows.MessageBoxResultDie Standardschaltfläche.
buttonCommands
Typ: array<System.Windows.Input.ICommand[]Die Schaltflächenbefehle.
Rückgabewert
Typ: System.Nullable<Boolean>
true , wenn der Befehl ein Dialogfeld anzeigt, andernfalls false.