FrameworkElementFactory.SetValue(DependencyProperty, Object) 方法

定义

设置依赖项属性的值。

public:
 void SetValue(System::Windows::DependencyProperty ^ dp, System::Object ^ value);
public void SetValue (System.Windows.DependencyProperty dp, object value);
member this.SetValue : System.Windows.DependencyProperty * obj -> unit
Public Sub SetValue (dp As DependencyProperty, value As Object)

参数

dp
DependencyProperty

要设置的属性的依赖项属性标识符。

value
Object

新值。

适用于