C# Class Open.Core.UI.Controls.Dialogs.DialogExtensions

Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
ContentDialog ( this dialog, System.Windows.DataTemplate template, INotifyPropertyChanged viewModel, double width, double height ) : IDialogContent

Reveals the specified content within the dialog box.

ContentDialog ( this dialog, IViewTemplate content, double width, double height ) : IDialogContent

Reveals the specified content within the dialog box.

ExceptionDialog ( this dialog, Exception error ) : IExceptionDialog

Reveals the specified exception within an ExceptionDialog content viewer.

QuestionDialog ( this dialog, string title, string text ) : IQuestionDialog

Reveals the specified content within the dialog box.

Private Methods

Method Description
AssignAsPresenter ( IAcceptCancelDialog parentDialog, IAcceptCancelPresenter dialogContent ) : void

Method Details

ContentDialog() public static method

Reveals the specified content within the dialog box.
public static ContentDialog ( this dialog, System.Windows.DataTemplate template, INotifyPropertyChanged viewModel, double width, double height ) : IDialogContent
dialog this The dialog box.
template System.Windows.DataTemplate The XAML template to render the content with.
viewModel INotifyPropertyChanged The logical representation of the content.
width double The pixel width of the dialog.
height double The pixel height of the dialog.
return IDialogContent

ContentDialog() public static method

Reveals the specified content within the dialog box.
public static ContentDialog ( this dialog, IViewTemplate content, double width, double height ) : IDialogContent
dialog this The dialog box.
content IViewTemplate The content to show within the dialog.
width double The pixel width of the dialog.
height double The pixel height of the dialog.
return IDialogContent

ExceptionDialog() public static method

Reveals the specified exception within an ExceptionDialog content viewer.
public static ExceptionDialog ( this dialog, Exception error ) : IExceptionDialog
dialog this The dialog box.
error System.Exception The error being shown.
return IExceptionDialog

QuestionDialog() public static method

Reveals the specified content within the dialog box.
public static QuestionDialog ( this dialog, string title, string text ) : IQuestionDialog
dialog this The dialog box.
title string The title of the dialog.
text string The text message.
return IQuestionDialog