次の方法で共有


ItemsView<TVisual>.ValidateItemTemplate(DataTemplate) Method

Definition

May be overridden by the application developer to validate data templates.

protected virtual bool ValidateItemTemplate (Xamarin.Forms.DataTemplate template);
abstract member ValidateItemTemplate : Xamarin.Forms.DataTemplate -> bool
override this.ValidateItemTemplate : Xamarin.Forms.DataTemplate -> bool

Parameters

template
DataTemplate

The template to validate.

Returns

System.Boolean

The default implementation returns true. Otherwise, the developer may override this method to return false if template is not valid.

Applies to