BaseValueSource Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies the property system source of a particular dependency property value.
public enum class BaseValueSource
public enum BaseValueSource
type BaseValueSource =
Public Enum BaseValueSource
- Inheritance
Name | Value | Description |
---|---|---|
Unknown | 0 | Source is not known. This is the default value. |
Default | 1 | Source is the default value, as defined by property metadata. |
Inherited | 2 | Source is a value through property value inheritance. |
DefaultStyle | 3 | Source is from a setter in the default style. The default style comes from the current theme. |
DefaultStyleTrigger | 4 | Source is from a trigger in the default style. The default style comes from the current theme. |
Style | 5 | Source is from a style setter of a non-theme style. |
TemplateTrigger | 6 | Source is a trigger-based value in a template that is from a non-theme style. |
StyleTrigger | 7 | Source is a trigger-based value of a non-theme style. |
ImplicitStyleReference | 8 | Source is an implicit style reference (style was based on detected type or based type). This value is only returned for the Style property itself, not for properties that are set through setters or triggers of such a style. |
ParentTemplate | 9 | Source is based on a parent template being used by an element. |
ParentTemplateTrigger | 10 | Source is a trigger-based value from a parent template that created the element. |
Local | 11 | Source is a locally set value. |
This enumeration is used by a property within the ValueSource structure, which in turn is obtained by calling a GetValueSource method against a particular dependency property.
Each value of this enumeration indicates that a particular aspect of the overall WPF property system was responsible for the effective value determination of a certain dependency property value on a specific dependency object. To learn more about the WPF property system and the precedence at which each aspect of the property system operates, see Dependency Property Value Precedence.
The value Default is not the default value of the enumeration.
Produto | Versões |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: