Поделиться через


Метод 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

    Заголовок диалогового окна.

Возвращаемое значение

Тип: System.Nullable<Boolean>
Значение true, если команда отображает диалоговое окно. В противном случае — значение false.

См. также

Справочник

IWebMatrixHost Интерфейс

Перегрузка ShowDialog

Пространство имен Microsoft.WebMatrix.Extensibility