New to Telerik UI for .NET MAUIStart a free 30-day trial

Exception thrown when a DataTemplate content cannot be cast to the expected type.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public class DataTemplateContentCastException : Exception, ISerializable

Inheritance: objectExceptionDataTemplateContentCastException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState...

Constructors

Initializes a new instance of the DataTemplateContentCastException class.

C#
public DataTemplateContentCastException(string message = "DataTemplate.Content cannot be cast to Xamarin.Forms.Cell.")
Parameters:messagestring

The error message that explains the reason for the exception.