ItemsPanelTemplate.ValidateTemplatedParent(FrameworkElement) Método

Definición

Comprueba que el elemento primario con plantilla es un objeto ItemsPresenter no nulo.

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)

Parámetros

templatedParent
FrameworkElement

Elemento al que se aplica esta plantilla. Éste debe ser un objeto ItemsPresenter.

Excepciones

templatedParent es null.

templatedParent no es ItemsPresenter.

Comentarios

El método usa las reglas siguientes:

  1. no templatedParent puede ser null.

  2. templatedParent debe ser .ItemsPresenter

Se aplica a