Class MessageDialogArgs
MessageDialog Argument class that holds all needed information to display a message dialog.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class MessageDialogArgs : DialogArgs
Constructors
View SourceMessageDialogArgs(Object, Object, MessageBoxButton, MessageBoxImage, Window)
Initializes a new instance of MessageDialogArgs.
Declaration
public MessageDialogArgs(object title, object content, MessageBoxButton messageBoxButton, MessageBoxImage messageBoxImage, Window owner = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | title | The window title. |
System.Object | content | The content displayed in the message dialog. |
System.Windows.MessageBoxButton | messageBoxButton | The available buttons of the message dialog. |
MessageBoxImage | messageBoxImage | The image displayed in the message dialog. |
System.Windows.Window | owner | the owner of the message dialog |
Properties
View SourceCancelButtonContent
Gets or sets the content of the 'Cancel' button.
Declaration
public object CancelButtonContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
CancelButtonTooltip
Gets or sets the tooltip of the 'Cancel' button.
Declaration
public string CancelButtonTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Content
gets the content in the center region of the message dialog
Declaration
public object Content { get; }
Property Value
Type | Description |
---|---|
System.Object |
DetailsAreaMaxHeight
Gets or sets the max height of the expanded details area.
Declaration
public double? DetailsAreaMaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The max height of the DetailsAreaMaxHeight details area. |
DetailsToggleButtonLabel
Gets or sets the toggle button label.
Declaration
public string DetailsToggleButtonLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String | The toggle button label. |
DetailsToggleButtonTooltip
Gets or sets thetooltip for the details toggle button.
Declaration
public string DetailsToggleButtonTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String | The details toggle button tooltip. |
DialogIcon
Gets or sets the icon that is displayed in the upper left corner of the dialog window.
Declaration
public Uri DialogIcon { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ExtendedContent
Gets or sets the extented content.
Declaration
public object ExtendedContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
MessageBoxButton
Gets or sets the message box button.
Declaration
public MessageBoxButton MessageBoxButton { get; }
Property Value
Type | Description |
---|---|
System.Windows.MessageBoxButton | The message box button. |
MessageBoxImage
Gets or sets the message box image.
Declaration
public MessageBoxImage MessageBoxImage { get; }
Property Value
Type | Description |
---|---|
MessageBoxImage | The message box image. |
MessageBoxImageBG
Gets or sets the message box image background.
Declaration
public Brush MessageBoxImageBG { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The message box image background. |
MessageBoxImageFG
Gets or sets the message box image foreground.
Declaration
public Brush MessageBoxImageFG { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The message box image foreground. |
MessageBoxImageStyle
Gets or sets the message box image style.
Declaration
public Style MessageBoxImageStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The message box image style. |
NoButtonContent
Gets or sets the content of the 'No' button.
Declaration
public object NoButtonContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
NoButtonTooltip
Gets or sets the tooltip of the 'No' button.
Declaration
public string NoButtonTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OkButtonContent
Gets or sets the content of the 'Ok' button.
Declaration
public object OkButtonContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
OkButtonTooltip
Gets or sets the tooltip of the 'Ok' button.
Declaration
public string OkButtonTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Owner
Gets or sets the owner of the dialog.
Declaration
public Window Owner { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Window |
Remarks
The dialog is always centered to its owner.
ShowInTaskbar
Gets or sets a value indicating whether the dialog is show in taskbar.
Declaration
public bool? ShowInTaskbar { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
|
Remarks
If not set then modal dialog are not displayed in the taskbar (unless it has no owner) and modeless dialog appear in the taskbar.
Title
The title shown in the title bar of the dialog.
Declaration
public object Title { get; }
Property Value
Type | Description |
---|---|
System.Object |
WindowStyle
Gets or sets the window style. Default is NONE.
Declaration
public WindowStyle WindowStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.WindowStyle | The window style. |
YesButtonContent
Gets or sets the content of the 'Yes' button.
Declaration
public object YesButtonContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
YesButtonTooltip
Gets or sets the tooltip of the 'Yes' button.
Declaration
public string YesButtonTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.String |