Validation.SetValidationAdornerSiteFor 方法

定义

ValidationAdornerSiteFor 附加属性设置为指定元素上的指定值。

public:
 static void SetValidationAdornerSiteFor(System::Windows::DependencyObject ^ element, System::Windows::DependencyObject ^ value);
public static void SetValidationAdornerSiteFor (System.Windows.DependencyObject element, System.Windows.DependencyObject value);
static member SetValidationAdornerSiteFor : System.Windows.DependencyObject * System.Windows.DependencyObject -> unit
Public Shared Sub SetValidationAdornerSiteFor (element As DependencyObject, value As DependencyObject)

参数

element
DependencyObject

要设置其 ValidationAdornerSiteFor 的元素。

value
DependencyObject

指定元素的 ValidationAdornerSiteFor

适用于