Show / Hide Table of Contents

Class MessageDialogArgs

MessageDialog Argument class that holds all needed information to display a message dialog.

Inheritance
System.Object
DialogArgs
MessageDialogArgs
DialogArgs.DefaultButton
DialogArgs.Header
DialogArgs.OnCloseParent
DialogArgs.ShowHelp
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class MessageDialogArgs : DialogArgs

Constructors

View Source

MessageDialogArgs(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 Source

CancelButtonContent

Gets or sets the content of the 'Cancel' button.

Declaration
public object CancelButtonContent { get; set; }
Property Value
Type Description
System.Object
View Source

CancelButtonTooltip

Gets or sets the tooltip of the 'Cancel' button.

Declaration
public string CancelButtonTooltip { get; set; }
Property Value
Type Description
System.String
View Source

Content

gets the content in the center region of the message dialog

Declaration
public object Content { get; }
Property Value
Type Description
System.Object
View Source

DetailsAreaMaxHeight

Gets or sets the max height of the expanded details area. Default is no maximum, the content will be completely shown.

Declaration
public double? DetailsAreaMaxHeight { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

The max height of the DetailsAreaMaxHeight details area.

View Source

DetailsToggleButtonLabel

Gets or sets the toggle button label.

Declaration
public string DetailsToggleButtonLabel { get; set; }
Property Value
Type Description
System.String

The toggle button label.

View Source

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.

View Source

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
View Source

ExtendedContent

Gets or sets the extented content.

Declaration
public object ExtendedContent { get; set; }
Property Value
Type Description
System.Object
View Source

MessageBoxButton

Gets or sets the message box button.

Declaration
public MessageBoxButton MessageBoxButton { get; }
Property Value
Type Description
System.Windows.MessageBoxButton

The message box button.

View Source

MessageBoxImage

Gets or sets the message box image. If MessageBoxImageStyle is set, MessageBoxImage will not be used.

Declaration
public MessageBoxImage MessageBoxImage { get; }
Property Value
Type Description
MessageBoxImage

The message box image.

View Source

MessageBoxImageBG

Gets or sets the message box image background. Should only be set if non-default background for selected MessageBoxImage should be used.

Declaration
public Brush MessageBoxImageBG { get; set; }
Property Value
Type Description
System.Windows.Media.Brush

The message box image background.

View Source

MessageBoxImageFG

Gets or sets the message box image foreground. Should only be set if non-default foreground for selected MessageBoxImage should be used.

Declaration
public Brush MessageBoxImageFG { get; set; }
Property Value
Type Description
System.Windows.Media.Brush

The message box image foreground.

View Source

MessageBoxImageStyle

Gets or sets the message box image style. If set, MessageBoxImage will not be used.

Declaration
public Style MessageBoxImageStyle { get; set; }
Property Value
Type Description
System.Windows.Style

The message box image style.

View Source

NoButtonContent

Gets or sets the content of the 'No' button.

Declaration
public object NoButtonContent { get; set; }
Property Value
Type Description
System.Object
View Source

NoButtonTooltip

Gets or sets the tooltip of the 'No' button.

Declaration
public string NoButtonTooltip { get; set; }
Property Value
Type Description
System.String
View Source

OkButtonContent

Gets or sets the content of the 'Ok' button.

Declaration
public object OkButtonContent { get; set; }
Property Value
Type Description
System.Object
View Source

OkButtonTooltip

Gets or sets the tooltip of the 'Ok' button.

Declaration
public string OkButtonTooltip { get; set; }
Property Value
Type Description
System.String
View Source

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.

View Source

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>

true if the dialog is show in taskbar; otherwise, false.

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.

View Source

Title

The title shown in the title bar of the dialog.

Declaration
public object Title { get; }
Property Value
Type Description
System.Object
View Source

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.

View Source

YesButtonContent

Gets or sets the content of the 'Yes' button.

Declaration
public object YesButtonContent { get; set; }
Property Value
Type Description
System.Object
View Source

YesButtonTooltip

Gets or sets the tooltip of the 'Yes' button.

Declaration
public string YesButtonTooltip { get; set; }
Property Value
Type Description
System.String

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)

See Also

IMessageDialog
  • View Source
Back to top Generated by DocFX