Volume Control
Application-specific hotkeys for Windows
|
Defines an action setting, and provides methods for creating action setting instances. More...
Public Member Functions | |
IActionSettingInstance | CreateInstance () |
Creates a new ActionSettingInstance<T> instance from this ActionSettingDefinition. More... | |
IActionSettingInstance | CreateInstance (bool? enabled, object? value) |
Creates a new ActionSettingInstance<T> instance from this ActionSettingDefinition and the specified value . More... | |
Properties | |
string | Name [get] |
Gets the name of the action setting. More... | |
string? | Description [get] |
Gets the description string of the action setting. More... | |
Type | ValueType [get] |
Gets the type of value that the action setting contains. More... | |
object? | DefaultValue [get] |
Gets the default value of the action setting. More... | |
DataTemplate? | DataTemplate [get] |
Gets the WPF DataTemplate to use for displaying the value editor control in the GUI. More... | |
bool | IsToggleable [get] |
Gets whether the action setting can be toggled on/off. More... | |
bool | StartsEnabled [get] |
Gets whether the action setting is enabled by default or not. More... | |
Defines an action setting, and provides methods for creating action setting instances.
This class is created automatically when a hotkey action addon method is marked with HotkeyActionSettingAttribute.
IActionSettingInstance VolumeControl.Core.Input.Actions.Settings.ActionSettingDefinition.CreateInstance | ( | ) |
Creates a new ActionSettingInstance<T> instance from this ActionSettingDefinition.
References VolumeControl.Core.Input.Actions.Settings.ActionSettingDefinition.ValueType.
IActionSettingInstance VolumeControl.Core.Input.Actions.Settings.ActionSettingDefinition.CreateInstance | ( | bool? | enabled, |
object? | value | ||
) |
Creates a new ActionSettingInstance<T> instance from this ActionSettingDefinition and the specified value .
enabled | Whether the action setting instance should start enabled. This does not have any effect if the setting is not toggleable. |
value | A default value for the action setting instance. |
References VolumeControl.Core.Input.Actions.Settings.ActionSettingDefinition.ValueType.
|
get |
Gets the WPF DataTemplate to use for displaying the value editor control in the GUI.
|
get |
Gets the default value of the action setting.
|
get |
Gets the description string of the action setting.
|
get |
Gets whether the action setting can be toggled on/off.
|
get |
Gets the name of the action setting.
|
get |
Gets whether the action setting is enabled by default or not.
Has no effect when IsToggleable is false
.
|
get |
Gets the type of value that the action setting contains.
Referenced by VolumeControl.Core.Input.Actions.Settings.ActionSettingDefinition.CreateInstance().