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

Indicates that this is a hotkey action method. More...

Inheritance diagram for VolumeControl.Core.Attributes.HotkeyActionAttribute:
Collaboration diagram for VolumeControl.Core.Attributes.HotkeyActionAttribute:

Public Member Functions

 HotkeyActionAttribute ([CallerMemberName] string methodName="")
 Creates a new HotkeyActionAttribute instance with a name specified by methodName . More...
 

Properties

string Name [get, set]
 Gets or sets the name of this hotkey action. More...
 
bool UseExactName [get, set]
 Gets or sets whether the Name property is modified by inserting spaces between unseparated words. More...
 
string? Description [get, set]
 Gets or sets the description string of this hotkey action. More...
 
string? GroupNameOverride [get, set]
 Gets or sets the group name of this hotkey action, overriding whatever is specified by the action group. More...
 
string? GroupColorOverride [get, set]
 Gets or sets the group color of this hotkey action, overriding whatever is specified by the action group. More...
 
Type? DefaultDataTemplateProvider [get, set]
 Gets or sets the default DataTemplate provider type to use for this action's settings. More...
 

Detailed Description

Indicates that this is a hotkey action method.

Constructor & Destructor Documentation

◆ HotkeyActionAttribute()

VolumeControl.Core.Attributes.HotkeyActionAttribute.HotkeyActionAttribute ( [CallerMemberName] string  methodName = "")

Creates a new HotkeyActionAttribute instance with a name specified by methodName .

Parameters
methodNameThe name of this hotkey action. If you do not provide one, the name of the method will be used automatically.

References VolumeControl.Core.Attributes.HotkeyActionAttribute.Name.

Property Documentation

◆ DefaultDataTemplateProvider

Type? VolumeControl.Core.Attributes.HotkeyActionAttribute.DefaultDataTemplateProvider
getset

Gets or sets the default DataTemplate provider type to use for this action's settings.

◆ Description

string? VolumeControl.Core.Attributes.HotkeyActionAttribute.Description
getset

Gets or sets the description string of this hotkey action.

◆ GroupColorOverride

string? VolumeControl.Core.Attributes.HotkeyActionAttribute.GroupColorOverride
getset

Gets or sets the group color of this hotkey action, overriding whatever is specified by the action group.

◆ GroupNameOverride

string? VolumeControl.Core.Attributes.HotkeyActionAttribute.GroupNameOverride
getset

Gets or sets the group name of this hotkey action, overriding whatever is specified by the action group.

◆ Name

string VolumeControl.Core.Attributes.HotkeyActionAttribute.Name
getset

Gets or sets the name of this hotkey action.

This defaults to the name of the method that this attribute is attached to, with spaces inserted between each word. To use this exact string without changing it, set UseExactName to true.

Referenced by VolumeControl.Core.Attributes.HotkeyActionAttribute.HotkeyActionAttribute().

◆ UseExactName

bool VolumeControl.Core.Attributes.HotkeyActionAttribute.UseExactName
getset

Gets or sets whether the Name property is modified by inserting spaces between unseparated words.


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