IWebMatrixHost.ShowDialog 方法 (String, UIElement, DialogSize, MessageBoxButton, MessageBoxResult, array<ICommand )
適用於版本2
指出命令是否會顯示對話方塊命令的值。
命名空間: Microsoft.WebMatrix.Extensibility
組件: Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)
語法
'宣告
Function ShowDialog ( _
title As String, _
content As UIElement, _
dialogSize As DialogSize, _
buttons As MessageBoxButton, _
defaultButton As MessageBoxResult, _
buttonCommands As ICommand() _
) As Nullable(Of Boolean)
'用途
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>
參數
title
型別:System.String對話方塊的標題。
content
型別:System.Windows.UIElement對話方塊的內容。
dialogSize
型別:Microsoft.WebMatrix.Extensibility.DialogSize對話方塊解析度。
buttons
型別:System.Windows.MessageBoxButton方塊中的按鈕。
defaultButton
型別:System.Windows.MessageBoxResult預設按鈕。
buttonCommands
型別:array<System.Windows.Input.ICommand[]按鈕命令。
傳回值
型別:System.Nullable<Boolean>
如果命令會顯示對話方塊,為 true,否則為 false。