Volume Control
Application-specific hotkeys for Windows
|
Specifies an action setting for the associated hotkey action method. More...
Public Member Functions | |
HotkeyActionSettingAttribute (string name, Type valueType) | |
Creates a new HotkeyActionSettingAttribute instance with the specified name and valueType . More... | |
HotkeyActionSettingAttribute (string name, Type valueType, Type dataTemplateProviderType) | |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , and dataTemplateProviderType . More... | |
HotkeyActionSettingAttribute (string name, Type valueType, string dataTemplateKey) | |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , and dataTemplateKey . More... | |
HotkeyActionSettingAttribute (string name, Type valueType, Type dataTemplateProviderType, string dataTemplateKey) | |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , dataTemplateProviderType , and dataTemplateKey . More... | |
Properties | |
string | Name [get, set] |
Gets or sets the name of this action setting. More... | |
string? | Description [get, set] |
Gets or sets the description string for this action setting. More... | |
Type | ValueType [get, set] |
Gets or sets the value type of this action setting. More... | |
object? | DefaultValue [get, set] |
Gets or sets the default value of this action setting. Must be the same type as, or implicitly convertible to, the specified ValueType. More... | |
bool | IsToggleable [get, set] |
Gets or sets whether this action setting can be toggled on/off. More... | |
bool | StartsEnabled [get, set] |
Gets or sets whether this action setting is enabled by default or not. More... | |
Type? | DataTemplateProviderType [get, set] |
Gets or sets the data template provider type to use for this action setting. Only types that implement ITemplateProvider or ITemplateDictionaryProvider are allowed. More... | |
string? | DataTemplateProviderKey [get, set] |
Gets or sets the name of a specific provided data template to use. More... | |
Specifies an action setting for the associated hotkey action method.
This attribute can only be used on methods that are also marked with HotkeyActionAttribute.
VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute | ( | string | name, |
Type | valueType | ||
) |
Creates a new HotkeyActionSettingAttribute instance with the specified name and valueType .
name | The name of this action setting. This is used to retrieve the value from the event arguments. |
valueType | The type of value that this action setting contains. |
References VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.Name, and VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.ValueType.
VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute | ( | string | name, |
Type | valueType, | ||
Type | dataTemplateProviderType | ||
) |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , and dataTemplateProviderType .
name | The name of this action setting. This is used to retrieve the value from the event arguments. |
valueType | The type of value that this action setting contains. |
dataTemplateProviderType | The type of the WPF DataTemplate to use for providing an editor control for the GUI. See DataTemplateProviderType for more information. |
References VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.DataTemplateProviderType, VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.Name, and VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.ValueType.
VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute | ( | string | name, |
Type | valueType, | ||
string | dataTemplateKey | ||
) |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , and dataTemplateKey .
name | The name of this action setting. This is used to retrieve the value from the event arguments. |
valueType | The type of value that this action setting contains. |
dataTemplateKey | string containing the key name of the target ActionSettingDataTemplate instance to use. |
References VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.DataTemplateProviderKey, VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.Name, and VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.ValueType.
VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute | ( | string | name, |
Type | valueType, | ||
Type | dataTemplateProviderType, | ||
string | dataTemplateKey | ||
) |
Creates a new HotkeyActionSettingAttribute instance with the specified name , valueType , dataTemplateProviderType , and dataTemplateKey .
name | The name of this action setting. This is used to retrieve the value from the event arguments. |
valueType | The type of value that this action setting contains. |
dataTemplateProviderType | The type of the WPF DataTemplate to use for providing an editor control for the GUI. See DataTemplateProviderType for more information. |
dataTemplateKey | string containing the key name of the target ActionSettingDataTemplate instance to use. |
References VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.DataTemplateProviderKey, VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.DataTemplateProviderType, VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.Name, and VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.ValueType.
|
getset |
Gets or sets the name of a specific provided data template to use.
Referenced by VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute().
|
getset |
Gets or sets the data template provider type to use for this action setting.
Only types that implement ITemplateProvider or ITemplateDictionaryProvider are allowed.
When this is null
, the default DataTemplate for the specified ValueType is used instead, if one is available.
See the documentation for ITemplateProvider & ITemplateDictionaryProvider for more information.
class
that implements ITemplateProvider or ITemplateDictionaryProvider class Type when a specific provider was specified; otherwise null
to automatically select a suitable template for the ValueType.Referenced by VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute().
|
getset |
Gets or sets the default value of this action setting. Must be the same type as, or implicitly convertible to, the specified ValueType.
|
getset |
Gets or sets the description string for this action setting.
|
getset |
Gets or sets whether this action setting can be toggled on/off.
When true
a checkbox control is shown in the UI to allow users to enable or disable the setting.
You can determine whether an action setting instance is enabled or not by checking the Input.Actions.Settings.IActionSettingInstance.IsEnabled property.
|
getset |
Gets or sets the name of this action setting.
Referenced by VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute().
|
getset |
Gets or sets whether this action setting is enabled by default or not.
This has no effect when IsToggleable is set to false
.
|
getset |
Gets or sets the value type of this action setting.
Referenced by VolumeControl.Core.Attributes.HotkeyActionSettingAttribute.HotkeyActionSettingAttribute().