FrameworkElementFactory.SetValue(DependencyProperty, Object) 方法

定义

设置依赖项属性的值。Sets the value of a dependency property.

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

要设置的属性的依赖项属性标识符。The dependency property identifier of the property to set.

value
Object

新值。The new value.

适用于