BaseValueSource 列舉

定義

識別特定相依性屬性值的屬性系統來源。Identifies the property system source of a particular dependency property value.

public enum class BaseValueSource
public enum BaseValueSource
type BaseValueSource = 
Public Enum BaseValueSource
繼承
BaseValueSource

欄位

Default 1

來源是預設值,如同屬性中繼資料所定義。Source is the default value, as defined by property metadata.

DefaultStyle 3

來源來自預設樣式的 Setter。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.

ImplicitStyleReference 8

來源是隱含樣式參考 (樣式根據偵測到的類型或基底類型而定)。Source is an implicit style reference (style was based on detected type or based type). 這個值只會為 Style 屬性本身傳回,而不會為透過這類樣式的 Setter 或觸發程序所設定的屬性傳回。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 2

來源是透過屬性值繼承的值。Source is a value through property value inheritance.

Local 11

來源是本機設定值。Source is a locally set value.

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.

Style 5

來源來自非佈景主題樣式的樣式 Setter。Source is from a style setter of a non-theme style.

StyleTrigger 7

來源是非佈景主題樣式之以觸發程序為基礎的值。Source is a trigger-based value of a non-theme style.

TemplateTrigger 6

來源是以觸發程序為基礎的值,位於來自非佈景主題樣式的樣板中。Source is a trigger-based value in a template that is from a non-theme style.

Unknown 0

來源未知。Source is not known. 這是預設值。This is the default value.

備註

此列舉是由ValueSource結構內的屬性所使用, 而此GetValueSource方法是透過針對特定相依性屬性呼叫方法來取得。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.

這個列舉的每一個值都表示, 整體WPFWPF屬性系統的特定層面負責判斷特定相依性物件上特定相依性屬性值的有效值。Each value of this enumeration indicates that a particular aspect of the overall WPFWPF property system was responsible for the effective value determination of a certain dependency property value on a specific dependency object. 若要深入瞭解WPFWPF屬性系統, 以及屬性系統每個層面的運作優先順序, 請參閱相依性屬性值優先順序To learn more about the WPFWPF 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.

適用於

另請參閱