DataTemplate.ValidateTemplatedParent(FrameworkElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks the templated parent against a set of rules.
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)
Parameters
- templatedParent
- FrameworkElement
The element this template is applied to.
Remarks
The method uses the following rules:
The
templatedParent
must be a non-null FrameworkElement.The DataTemplate must be applied to a ContentPresenter.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.