DependencyPropertyHelper.GetValueSource(DependencyObject, DependencyProperty) 方法

定义

返回一种结构,该结构报告特定 DependencyObject 上指定依赖属性的各种元数据和属性系统特征。Returns a structure that reports various metadata and property system characteristics of a specified dependency property on a particular DependencyObject.

public:
 static System::Windows::ValueSource GetValueSource(System::Windows::DependencyObject ^ dependencyObject, System::Windows::DependencyProperty ^ dependencyProperty);
public static System.Windows.ValueSource GetValueSource (System.Windows.DependencyObject dependencyObject, System.Windows.DependencyProperty dependencyProperty);
static member GetValueSource : System.Windows.DependencyObject * System.Windows.DependencyProperty -> System.Windows.ValueSource

参数

dependencyObject
DependencyObject

包含要报告其信息的 dependencyProperty 的元素。The element that contains the dependencyProperty to report information for.

dependencyProperty
DependencyProperty

要报告其相关信息的依赖项属性的标识符。The identifier for the dependency property to report information for.

返回

报告特定信息的 ValueSource 结构。A ValueSource structure that reports the specific information.

注解

应在上下文中调用此方法, 以便属性值确定中的后期参与者能够对属性进行操作。You should call this method in a context such that late participants in property value determination are able to act on a property. 例如, 绑定在属性上可能不处于活动状态, 除非元素树中的所有参与者元素都已加载并传播异步绑定, 并且绑定源对象已连接。For instance, bindings may not be active on a property unless all participant elements in the element tree are loaded and the asynchronous binding is propagated, and the binding source object is connected. 同样, 包括所有必要主题字典的资源应该可用。Similarly, resources including all necessary theme dictionaries should be available.

适用于

另请参阅