BaseValueSource Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Identifies the property system source of a particular dependency property value.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public enum class BaseValueSource

Member nameDescription
Default

Source is the default value, as defined by property metadata.

DefaultStyle

Source is from a setter in the default style. The default style comes from the current theme.

DefaultStyleTrigger

Source is from a trigger in the default style. The default style comes from the current theme.

ImplicitStyleReference

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.

Inherited

Source is a value through property value inheritance.

Local

Source is a locally set value.

ParentTemplate

Source is based on a parent template being used by an element.

ParentTemplateTrigger

Source is a trigger-based value from a parent template that created the element.

Style

Source is from a style setter of a non-theme style.

StyleTrigger

Source is a trigger-based value of a non-theme style.

TemplateTrigger

Source is a trigger-based value in a template that is from a non-theme style.

Unknown

Source is not known. This is the default 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.

.NET Framework
Available since 3.0
Return to top
Show: