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。