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

Extends the DataTemplate class with metadata specific to action setting data template providers. More...

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

Public Member Functions

bool SupportsValueType (Type valueType)
 Checks if this ActionSettingDataTemplate instance supports the specified valueType . More...
 

Properties

Type ValueType = null! [get, set]
 Gets or sets the type of value supported by this action setting data template. More...
 
bool IsExplicit = false [get, set]
 Gets or sets whether this ActionSettingDataTemplate instance can be used for action settings that don't specify a key as long as it has a matching ValueType. More...
 

Detailed Description

Extends the DataTemplate class with metadata specific to action setting data template providers.

Member Function Documentation

◆ SupportsValueType()

bool VolumeControl.Core.ActionSettingDataTemplate.SupportsValueType ( Type  valueType)

Checks if this ActionSettingDataTemplate instance supports the specified valueType .

Parameters
valueTypeThe value type of an action setting to check.
Returns
true when the valueType is supported and this instance is not explicit; otherwise false.

References VolumeControl.Core.ActionSettingDataTemplate.IsExplicit, and VolumeControl.Core.ActionSettingDataTemplate.ValueType.

Referenced by VolumeControl.Core.ResourceDictionaryTemplateProvider.ProvideDataTemplate().

Here is the caller graph for this function:

Property Documentation

◆ IsExplicit

bool VolumeControl.Core.ActionSettingDataTemplate.IsExplicit = false
getset

Gets or sets whether this ActionSettingDataTemplate instance can be used for action settings that don't specify a key as long as it has a matching ValueType.

Referenced by VolumeControl.Core.ActionSettingDataTemplate.SupportsValueType().

◆ ValueType

Type VolumeControl.Core.ActionSettingDataTemplate.ValueType = null!
getset

Gets or sets the type of value supported by this action setting data template.

Referenced by VolumeControl.Core.ActionSettingDataTemplate.SupportsValueType().


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