共用方式為


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

適用於