Validation.GetErrorTemplate(DependencyObject) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen öğenin ekli özelliğinin değerini ErrorTemplate alır.
public:
static System::Windows::Controls::ControlTemplate ^ GetErrorTemplate(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Controls.ControlTemplate GetErrorTemplate (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetErrorTemplate : System.Windows.DependencyObject -> System.Windows.Controls.ControlTemplate
Public Shared Function GetErrorTemplate (element As DependencyObject) As ControlTemplate
Parametreler
- element
- DependencyObject
Değerin UIElement okunduğu veya ContentElement nesnesi.
Döndürülenler
Donatıcı ControlTemplate katmanında doğrulama hatası geri bildirimi oluşturmak için kullanılır.
- Öznitelikler
Özel durumlar
ise element
null
.