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

Visual representation of an item in the RadItemsView control.

Definition

Constructors

Initializes a new instance of the ItemView class.

C#
public ItemView()

Fields

ContentTemplateProperty

BindableProperty

Identifies the ContentTemplate property.

C#
public static readonly BindableProperty ContentTemplateProperty

FontAttributesProperty

BindableProperty

Identifies the FontAttributes property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HorizontalContentOptions property.

C#
public static readonly BindableProperty HorizontalContentOptionsProperty

Identifies the HorizontalTextAlignment property.

C#
public static readonly BindableProperty HorizontalTextAlignmentProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TextDecorationsProperty

BindableProperty

Identifies the TextDecorations property.

C#
public static readonly BindableProperty TextDecorationsProperty

Identifies the VerticalContentOptions property.

C#
public static readonly BindableProperty VerticalContentOptionsProperty

Identifies the VerticalTextAlignment property.

C#
public static readonly BindableProperty VerticalTextAlignmentProperty

Properties

ContentTemplate

DataTemplate

Gets or sets the DataTemplate that defines the visual representation of the current item. When set to null, the control displays the text representation of the current item.

C#
public DataTemplate ContentTemplate { get; set; }

FontAttributes

FontAttributes

Gets or sets the font attributes of the displayed text. For more information see the FontAttributes type.

C#
public FontAttributes FontAttributes { get; set; }

Gets or sets the font family of the displayed text.

C#
public string FontFamily { get; set; }

Gets or sets the font size in pixels of the displayed text.

C#
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Gets or sets the horizontal layout options of the displayed content. For more information see the LayoutOptions type.

C#
public LayoutOptions HorizontalContentOptions { get; set; }

Gets or sets the horizontal alignment of the displayed text. For more information see the TextAlignment type.

C#
public TextAlignment HorizontalTextAlignment { get; set; }

Gets or sets the color of the displayed text.

C#
public Color TextColor { get; set; }

TextDecorations

TextDecorations

Gets or sets the text decorations of the displayed text. For more information see the TextDecorations type.

C#
public TextDecorations TextDecorations { get; set; }

Gets or sets the vertical layout options of the displayed content. For more information see the LayoutOptions type.

C#
public LayoutOptions VerticalContentOptions { get; set; }

Gets or sets the vertical alignment of the displayed text. For more information see the TextAlignment type.

C#
public TextAlignment VerticalTextAlignment { get; set; }

Methods

C#
protected override Size ArrangeOverride(Rect layoutBounds)
Parameters:layoutBoundsRectReturns:

Size

C#
protected override void InvalidateMeasureOverride()
C#
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters:widthConstraintdoubleheightConstraintdoubleReturns:

Size

Called when the binding context changes.

C#
protected override void OnBindingContextChanged()

Overrides: RadCompositeContentView.OnBindingContextChanged()

Called when the handler changes.

C#
protected override void OnHandlerChanged()

Overrides: RadContentView.OnHandlerChanged()