ValidateTemplatedParent Method
Collapse the table of content
Expand the table of content

ItemsPanelTemplate.ValidateTemplatedParent Method (FrameworkElement)

 

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

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

protected override void ValidateTemplatedParent(
	FrameworkElement templatedParent
)

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:
© 2016 Microsoft