Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle Class Reference

Defines the appearance of a CustomMessageBox window. More...

Inheritance diagram for VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle:
Collaboration diagram for VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle:

Static Public Attributes

static readonly CustomMessageBoxStyle Default = new()
 
const double MinimumAllowedMaxWidthValue = 30.0
 The minimum allowed value for MaxWidth. Values below this number cannot be set. More...
 

Properties

Brush BackgroundBrush = new SolidColorBrush(Color.FromRgb(0x30, 0x30, 0x30)) [get, set]
 
Brush ForegroundBrush = Brushes.WhiteSmoke [get, set]
 
Brush BorderBrush = new SolidColorBrush(Color.FromRgb(0x50, 0x50, 0x50)) [get, set]
 
Thickness BorderThickness = new(3) [get, set]
 
CornerRadius CornerRadius = new(5) [get, set]
 
double? MaxWidth [get, set]
 Gets or sets the maximum width of the CustomMessageBox window. The actual width of the window cannot be less than 100. More...
 
double? MaxWidthScreenPercentage [get, set]
 Gets or sets the maximum width of the CustomMessageBox window, as a percentage of the width of the screen it was initially displayed on, in the range 0.0 - 1.0. More...
 
Brush CaptionBackgroundBrush = Brushes.Transparent [get, set]
 
Brush CaptionForegroundBrush = Brushes.LightGray [get, set]
 
Brush CaptionButtonMouseOverBackgroundBrush = new SolidColorBrush(Color.FromArgb(0x22, 0xFF, 0xFF, 0xFF)) [get, set]
 
Brush CaptionButtonPressedBackgroundBrush = new SolidColorBrush(Color.FromArgb(0x44, 0xFF, 0xFF, 0xFF)) [get, set]
 
double CaptionFontSize = 14.0 [get, set]
 
double CaptionHeight = 22.0 [get, set]
 
Brush ButtonBackgroundBrush = new SolidColorBrush(Color.FromRgb(0x99, 0x99, 0x99)) [get, set]
 
Brush ButtonForegroundBrush = new SolidColorBrush(Color.FromRgb(0x22, 0x22, 0x22)) [get, set]
 
Brush ButtonMouseOverBackgroundBrush = new SolidColorBrush(Color.FromRgb(0xAA, 0xAA, 0xAA)) [get, set]
 
Brush ButtonPressedBackgroundBrush = new SolidColorBrush(Color.FromRgb(0xCC, 0xCC, 0xCC)) [get, set]
 
Brush ButtonBorderBrush = Brushes.Transparent [get, set]
 
Brush ButtonBorderBrushFocused = new SolidColorBrush(Color.FromRgb(0x33, 0xBB, 0xEE)) [get, set]
 
Thickness ButtonBorderThickness = new(1.5) [get, set]
 
CornerRadius ButtonCornerRadius = new(5) [get, set]
 
HorizontalAlignment ButtonPanelAlignment = HorizontalAlignment.Right [get, set]
 Gets or sets the horizontal alignment of the buttons panel. More...
 
double ButtonFontSize = 12.0 [get, set]
 
FontWeight ButtonFontWeight = FontWeights.Bold [get, set]
 
Thickness ButtonPadding = new(6, 2.5, 6, 2.5) [get, set]
 
Dock ContentPanelDock = Dock.Bottom [get, set]
 Gets or sets the side of the window that the content panel is docked to. More...
 
HorizontalAlignment ContentPanelAlignment = HorizontalAlignment.Stretch [get, set]
 
double ContentFontSize = 12.0 [get, set]
 
TextAlignment MessageTextAlignment = TextAlignment.Left [get, set]
 Gets or sets the text alignment of the Message text. More...
 
double MessageFontSize = 12.0 [get, set]
 Gets or sets the font size of the Message text. More...
 

Events

PropertyChangedEventHandler? PropertyChanged
 

Detailed Description

Defines the appearance of a CustomMessageBox window.

Member Data Documentation

◆ MinimumAllowedMaxWidthValue

const double VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.MinimumAllowedMaxWidthValue = 30.0
static

The minimum allowed value for MaxWidth. Values below this number cannot be set.

Property Documentation

◆ ButtonPanelAlignment

HorizontalAlignment VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.ButtonPanelAlignment = HorizontalAlignment.Right
getset

Gets or sets the horizontal alignment of the buttons panel.

◆ ContentPanelDock

Dock VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.ContentPanelDock = Dock.Bottom
getset

Gets or sets the side of the window that the content panel is docked to.

◆ MaxWidth

double? VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.MaxWidth
getset

Gets or sets the maximum width of the CustomMessageBox window. The actual width of the window cannot be less than 100.

Setting this to a non-null value will unset MaxWidthScreenPercentage.

Exceptions
ArgumentOutOfRangeExceptionValue was less than 0.

Referenced by VolumeControl.WPF.CustomMessageBox.CustomMessageBox.Show().

◆ MaxWidthScreenPercentage

double? VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.MaxWidthScreenPercentage
getset

Gets or sets the maximum width of the CustomMessageBox window, as a percentage of the width of the screen it was initially displayed on, in the range 0.0 - 1.0.

Setting this to a non-null value will unset MaxWidth.

Exceptions
ArgumentOutOfRangeExceptionValue was less than 0 or greater than 1.
Returns
The percentage of the screen width that the window can use, where 1.0 is 100%.

Referenced by VolumeControl.WPF.CustomMessageBox.CustomMessageBox.Show().

◆ MessageFontSize

double VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.MessageFontSize = 12.0
getset

Gets or sets the font size of the Message text.

◆ MessageTextAlignment

TextAlignment VolumeControl.WPF.CustomMessageBox.CustomMessageBoxStyle.MessageTextAlignment = TextAlignment.Left
getset

Gets or sets the text alignment of the Message text.


The documentation for this class was generated from the following file: