Volume Control
Application-specific hotkeys for Windows
VolumeControl.Core.NotificationConfigSection Class Reference

Configuration for a ListNotification window. More...

Inheritance diagram for VolumeControl.Core.NotificationConfigSection:
Collaboration diagram for VolumeControl.Core.NotificationConfigSection:

Static Public Attributes

const int DefaultTimeoutMs = 3000
 Gets the default value for the TimeoutMs property. More...
 

Properties

bool Enabled = true [get, set]
 Gets or sets whether notifications are enabled or not. More...
 
bool ShowOnVolumeChanged = true [get, set]
 Gets or sets whether or not the list notification window appears for volume change events. More...
 
bool TimeoutEnabled = true [get, set]
 Gets or sets whether the notification window disappears on its own after a set amount of time. More...
 
int TimeoutMs = DefaultTimeoutMs [get, set]
 Gets or sets the amount of time, in milliseconds, that the notification window stays visible for before disappearing. More...
 
Point? Position [get, set]
 Gets or sets the location of the notification window More...
 
EScreenCorner PositionOriginCorner = EScreenCorner.TopLeft [get, set]
 Gets or sets the corner from which ListNotification size transform operations are rooted. More...
 
bool DoFadeIn = true [get, set]
 Gets or sets whether the notification window slowly fades in instead of appearing instantly. More...
 
Duration FadeInDuration = new(TimeSpan.FromMilliseconds(150)) [get, set]
 Gets or sets the duration of the notification fade-in animation. More...
 
bool DoFadeOut = true [get, set]
 Gets or sets whether the notification window slowly fades out instead of disappearing instantly. More...
 
Duration FadeOutDuration = new(TimeSpan.FromMilliseconds(750)) [get, set]
 Gets or sets the duration of the notification fade-in animation. More...
 
ENotificationViewMode ViewMode = ENotificationViewMode.Everything [get, set]
 Gets or sets the view mode of this notification. More...
 
Color BackgroundColor = Color.FromRgb(0x25, 0x25, 0x25) [get, set]
 Gets or sets the background color. More...
 
Color LockedColor = Color.FromRgb(0xA3, 0x28, 0x28) [get, set]
 Gets or sets the accent color when selection is locked. More...
 
Color UnlockedColor = Color.FromRgb(0x49, 0x6D, 0x49) [get, set]
 Gets or sets the accent color when selection is unlocked. More...
 
Color TextColor = Colors.WhiteSmoke [get, set]
 Gets or sets the text color. More...
 
CornerRadius CornerRadius = new(19) [get, set]
 Gets or sets the radius of the notification window's corners. More...
 

Events

PropertyChangedEventHandler? PropertyChanged
 

Detailed Description

Configuration for a ListNotification window.

Member Data Documentation

◆ DefaultTimeoutMs

const int VolumeControl.Core.NotificationConfigSection.DefaultTimeoutMs = 3000
static

Gets the default value for the TimeoutMs property.

Property Documentation

◆ BackgroundColor

Color VolumeControl.Core.NotificationConfigSection.BackgroundColor = Color.FromRgb(0x25, 0x25, 0x25)
getset

Gets or sets the background color.

◆ CornerRadius

CornerRadius VolumeControl.Core.NotificationConfigSection.CornerRadius = new(19)
getset

Gets or sets the radius of the notification window's corners.

◆ DoFadeIn

bool VolumeControl.Core.NotificationConfigSection.DoFadeIn = true
getset

Gets or sets whether the notification window slowly fades in instead of appearing instantly.

◆ DoFadeOut

bool VolumeControl.Core.NotificationConfigSection.DoFadeOut = true
getset

Gets or sets whether the notification window slowly fades out instead of disappearing instantly.

◆ Enabled

bool VolumeControl.Core.NotificationConfigSection.Enabled = true
getset

Gets or sets whether notifications are enabled or not.

Referenced by VolumeControl.SDK.VCAPI.ShowDeviceListNotification(), and VolumeControl.SDK.VCAPI.ShowSessionListNotification().

◆ FadeInDuration

Duration VolumeControl.Core.NotificationConfigSection.FadeInDuration = new(TimeSpan.FromMilliseconds(150))
getset

Gets or sets the duration of the notification fade-in animation.

◆ FadeOutDuration

Duration VolumeControl.Core.NotificationConfigSection.FadeOutDuration = new(TimeSpan.FromMilliseconds(750))
getset

Gets or sets the duration of the notification fade-in animation.

◆ LockedColor

Color VolumeControl.Core.NotificationConfigSection.LockedColor = Color.FromRgb(0xA3, 0x28, 0x28)
getset

Gets or sets the accent color when selection is locked.

◆ Position

Point? VolumeControl.Core.NotificationConfigSection.Position
getset

Gets or sets the location of the notification window

◆ PositionOriginCorner

EScreenCorner VolumeControl.Core.NotificationConfigSection.PositionOriginCorner = EScreenCorner.TopLeft
getset

Gets or sets the corner from which ListNotification size transform operations are rooted.

◆ ShowOnVolumeChanged

bool VolumeControl.Core.NotificationConfigSection.ShowOnVolumeChanged = true
getset

Gets or sets whether or not the list notification window appears for volume change events.

◆ TextColor

Color VolumeControl.Core.NotificationConfigSection.TextColor = Colors.WhiteSmoke
getset

Gets or sets the text color.

◆ TimeoutEnabled

bool VolumeControl.Core.NotificationConfigSection.TimeoutEnabled = true
getset

Gets or sets whether the notification window disappears on its own after a set amount of time.

◆ TimeoutMs

int VolumeControl.Core.NotificationConfigSection.TimeoutMs = DefaultTimeoutMs
getset

Gets or sets the amount of time, in milliseconds, that the notification window stays visible for before disappearing.

◆ UnlockedColor

Color VolumeControl.Core.NotificationConfigSection.UnlockedColor = Color.FromRgb(0x49, 0x6D, 0x49)
getset

Gets or sets the accent color when selection is unlocked.

◆ ViewMode

ENotificationViewMode VolumeControl.Core.NotificationConfigSection.ViewMode = ENotificationViewMode.Everything
getset

Gets or sets the view mode of this notification.


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