Volume Control
Application-specific hotkeys for Windows
|
Data model for CustomMessageBox windows. More...
Public Member Functions | |
CustomMessageBoxData () | |
Creates a new CustomMessageBoxData instance without specifying any parameters. More... | |
CustomMessageBoxData (Window owner) | |
Creates a new CustomMessageBoxData instance with the specified owner . More... | |
CustomMessageBoxData (Window owner, object content) | |
Creates a new CustomMessageBoxData instance with the specified owner and content . More... | |
CustomMessageBoxData (Window owner, object content, string caption) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , and caption . More... | |
CustomMessageBoxData (Window owner, object content, string caption, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, ImageSource icon, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxImage icon, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, ImageSource icon, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxImage icon, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, ImageSource icon) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , and icon . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, ImageSource icon, MessageBoxResult defaultResult) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, MessageBoxImage icon) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , and icon . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult, CustomMessageBoxOptions options) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (Window owner, object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options) | |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (object content) | |
Creates a new CustomMessageBoxData instance without specifying any parameters. More... | |
CustomMessageBoxData (object content, string caption) | |
Creates a new CustomMessageBoxData instance without specifying any parameters. More... | |
CustomMessageBoxData (object content, string caption, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons . More... | |
CustomMessageBoxData (object content, string caption, ImageSource icon, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxImage icon, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons . More... | |
CustomMessageBoxData (object content, string caption, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons . More... | |
CustomMessageBoxData (object content, string caption, ImageSource icon, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxImage icon, CustomMessageBoxButton? defaultResult, params CustomMessageBoxButton?[] buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, ImageSource icon) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , and icon . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, ImageSource icon, MessageBoxResult defaultResult) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, MessageBoxImage icon) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , and icon . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult, CustomMessageBoxOptions options) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult . More... | |
CustomMessageBoxData (object content, string caption, MessageBoxButton buttons, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options) | |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult . More... | |
Properties | |
CustomMessageBoxStyle | Appearance = CustomMessageBoxStyle.Default [get, set] |
Gets or sets the CustomMessageBoxStyle instance that defines the appearance & layout of the CustomMessageBox. More... | |
Window? | Owner [get, set] |
Gets the owner window. More... | |
string? | Message [get, set] |
Gets or sets the message string to display in the CustomMessageBox. More... | |
object? | Content [get, set] |
Gets or sets the extra content (such as controls) to display in the CustomMessageBox. More... | |
string | Title = string.Empty [get, set] |
Gets or sets the title of the CustomMessageBox window. More... | |
bool | ShowCaptionBar = true [get, set] |
Gets or sets whether the caption bar is visible or not. More... | |
ImageSource? | Icon [get, set] |
Gets or sets the icon to display in the CustomMessageBox window. More... | |
ObservableCollection< CustomMessageBoxButton > | Buttons = new() [get] |
Gets or sets the buttons to show in the CustomMessageBox window. More... | |
MessageBoxButton? | MessageBoxButton [get, set] |
Gets or sets the buttons to show in the CustomMessageBox window, as a legacy enum value. More... | |
CustomMessageBoxButton? | DefaultResult [get, set] |
Gets or sets the default button for the CustomMessageBox. More... | |
CustomMessageBoxButton? | Result [get] |
Gets the button that the user pressed. More... | |
CustomMessageBoxOptions | Options [get, set] |
Gets or sets the special display options for the CustomMessageBox. More... | |
MessageBoxOptions | MessageBoxOptions [get, set] |
Gets or sets the special display options for the CustomMessageBox as the legacy enum type. More... | |
bool | EnableEscapeKey = false [get, set] |
Gets or sets whether pressing the Escape key will close the window (with the default result) or not. Defaults to false . More... | |
Events | |
PropertyChangedEventHandler? | PropertyChanged |
Data model for CustomMessageBox windows.
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | ) |
Creates a new CustomMessageBoxData instance without specifying any parameters.
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner | ) |
Creates a new CustomMessageBoxData instance with the specified owner .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner and content .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , and caption .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
ImageSource | icon, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxImage | icon, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
ImageSource | icon, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxImage | icon, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , icon , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , and buttons .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
ImageSource | icon | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , and icon .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
ImageSource | icon, | ||
MessageBoxResult | defaultResult | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , and icon .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult, | ||
CustomMessageBoxOptions | options | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
options | Specifies special display options for the CustomMessageBox window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | Window | owner, |
object | content, | ||
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult, | ||
MessageBoxOptions | options | ||
) |
Creates a new CustomMessageBoxData instance with the specified owner , content , caption , buttons , icon , and defaultResult .
owner | The Window to set as the owner of the CustomMessageBox dialog window. |
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
options | Specifies special display options for the CustomMessageBox window. MessageBoxOptions.DefaultDesktopOnly & MessageBoxOptions.ServiceNotification are not supported. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content | ) |
Creates a new CustomMessageBoxData instance without specifying any parameters.
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption | ||
) |
Creates a new CustomMessageBoxData instance without specifying any parameters.
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
ImageSource | icon, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxImage | icon, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
ImageSource | icon, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxImage | icon, | ||
CustomMessageBoxButton? | defaultResult, | ||
params CustomMessageBoxButton?[] | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , icon , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. This can be a string, char, MessageBoxResult, or CustomMessageBoxButton, but it must match the Name of one of the specified buttons or an ArgumentOutOfRangeException is thrown. It does not have to be the same instance. |
buttons | The buttons to display in the window. |
ArgumentOutOfRangeException | The specified defaultResult didn't match any of the buttons . |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , and buttons .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
ImageSource | icon | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , and icon .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
ImageSource | icon, | ||
MessageBoxResult | defaultResult | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , and icon .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult, | ||
CustomMessageBoxOptions | options | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
options | Specifies special display options for the CustomMessageBox window. |
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxData.CustomMessageBoxData | ( | object | content, |
string | caption, | ||
MessageBoxButton | buttons, | ||
MessageBoxImage | icon, | ||
MessageBoxResult | defaultResult, | ||
MessageBoxOptions | options | ||
) |
Creates a new CustomMessageBoxData instance with the specified content , caption , buttons , icon , and defaultResult .
content | The content to display in the message box. This can be any type, including string & System.Windows.Controls.Control. When a string is specified, the Message property is set instead of the Content property. |
caption | The title of the window. |
buttons | The buttons to display in the window. |
icon | The icon to display in the window. |
defaultResult | The default result of the messagebox. |
options | Specifies special display options for the CustomMessageBox window. MessageBoxOptions.DefaultDesktopOnly & MessageBoxOptions.ServiceNotification are not supported. |
|
getset |
Gets or sets the CustomMessageBoxStyle instance that defines the appearance & layout of the CustomMessageBox.
Referenced by VolumeControl.WPF.CustomMessageBox.CustomMessageBox.Show().
|
get |
Gets or sets the buttons to show in the CustomMessageBox window.
|
getset |
Gets or sets the extra content (such as controls) to display in the CustomMessageBox.
This can be specified at the same time as the Content property.
|
getset |
Gets or sets the default button for the CustomMessageBox.
|
getset |
Gets or sets whether pressing the Escape key will close the window (with the default result) or not. Defaults to false
.
|
getset |
Gets or sets the icon to display in the CustomMessageBox window.
|
getset |
Gets or sets the message string to display in the CustomMessageBox.
This can be specified at the same time as the Content property.
|
getset |
Gets or sets the buttons to show in the CustomMessageBox window, as a legacy enum value.
Setting this will overwrite the Buttons if there are any.
|
getset |
Gets or sets the special display options for the CustomMessageBox as the legacy enum type.
MessageBoxOptions.DefaultDesktopOnly & MessageBoxOptions.ServiceNotification are not supported and will trigger an InvalidOperationException if you attempt to set them.
InvalidOperationException | The specified value included MessageBoxOptions.DefaultDesktopOnly and/or MessageBoxOptions.ServiceNotification, which are not supported. |
|
getset |
Gets or sets the special display options for the CustomMessageBox.
|
getset |
Gets the owner window.
|
get |
Gets the button that the user pressed.
null
if the user didn't click a button.
|
getset |
Gets or sets whether the caption bar is visible or not.
When false
, the Title & Icon properties are ignored. The close button will not be visible either.
|
getset |
Gets or sets the title of the CustomMessageBox window.