ItemsPanelTemplate.ValidateTemplatedParent Method (FrameworkElement)

 

Checks that the templated parent is a non-null ItemsPresenter object.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

override ValidateTemplatedParent : 
        templatedParent:FrameworkElement -> unit

Parameters

templatedParent
Type: System.Windows.FrameworkElement

The element this template is applied to. This must be an ItemsPresenter object.

Exception Condition
ArgumentNullException

templatedParent is null.

ArgumentException

templatedParent is not an ItemsPresenter.

The method uses the following rules:

1. The templatedParent cannot be null.

2. The templatedParent must be an ItemsPresenter.

.NET Framework
Available since 3.0
Return to top
Show: