DataTemplate.ValidateTemplatedParent(FrameworkElement) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據一組規則檢查樣板化父系。
protected:
override void ValidateTemplatedParent(System::Windows::FrameworkElement ^ templatedParent);
protected override void ValidateTemplatedParent(System.Windows.FrameworkElement templatedParent);
override this.ValidateTemplatedParent : System.Windows.FrameworkElement -> unit
Protected Overrides Sub ValidateTemplatedParent (templatedParent As FrameworkElement)
參數
- templatedParent
- FrameworkElement
這個範本所套用的元素。
備註
此方法使用以下規則:
必須
templatedParent是非零 FrameworkElement。DataTemplate必須將 應用於 ContentPresenter。