共用方式為


Validation.SetValidationAdornerSite 方法

定義

將指定之項目的 ValidationAdornerSite 附加屬性設為指定值。

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

參數

element
DependencyObject

要設定 ValidationAdornerSite 的項目。

value
DependencyObject

指定之項目的 ValidationAdornerSite

適用於