Volume Control
Application-specific hotkeys for Windows
|
An alternative to ITemplateProvider that can be combined with a ResourceDictionary (with a codebehind) to define many data templates in XAML and provide them for action settings based on a key string and/or value type.
XAML-defined data templates must be type ActionSettingDataTemplate, not DataTemplate.
Set ActionSettingDataTemplate.ValueType to the type of value that the data template supports.
More...
Public Member Functions | |
ActionSettingDataTemplate? | ProvideDataTemplate (string key) |
Provides the ActionSettingDataTemplate instance with the specified key . More... | |
ActionSettingDataTemplate? | ProvideDataTemplate (Type valueType) |
Provides an ActionSettingDataTemplate for the specified valueType . More... | |
IEnumerable< DictionaryEntry > | AsEnumerable () |
Gets the contents of the dictionary as an enumerable collection of DictionaryEntry instances. More... | |
An alternative to ITemplateProvider that can be combined with a ResourceDictionary (with a codebehind) to define many data templates in XAML and provide them for action settings based on a key string and/or value type.
XAML-defined data templates must be type ActionSettingDataTemplate, not DataTemplate.
Set ActionSettingDataTemplate.ValueType to the type of value that the data template supports.
Any public, non-static, non-abstract class that implements this interface can be specified for HotkeyActionSettingAttribute.DataTemplateProviderType.
IEnumerable<DictionaryEntry> VolumeControl.Core.ITemplateDictionaryProvider.AsEnumerable | ( | ) |
Gets the contents of the dictionary as an enumerable collection of DictionaryEntry instances.
Implemented in VolumeControl.Core.ResourceDictionaryTemplateProvider.
ActionSettingDataTemplate? VolumeControl.Core.ITemplateDictionaryProvider.ProvideDataTemplate | ( | string | key | ) |
Provides the ActionSettingDataTemplate instance with the specified key .
key | The key name of the target DataTemplate instance. |
null
.Implemented in VolumeControl.Core.ResourceDictionaryTemplateProvider.
ActionSettingDataTemplate? VolumeControl.Core.ITemplateDictionaryProvider.ProvideDataTemplate | ( | Type | valueType | ) |
Provides an ActionSettingDataTemplate for the specified valueType .
This method will not return templates where ActionSettingDataTemplate.IsExplicit is true
.
valueType | The value type to get a DataTemplate for. |
null
.Implemented in VolumeControl.Core.ResourceDictionaryTemplateProvider.