Class
ItemView

Visual representation of an item in the RadItemsView control.

Definition

Namespace:Telerik.Maui.Controls.ItemsView

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class ItemView : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewItemView

Derived Classes: SelectableItemView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadBorderContentView.BackgroundColorPropertyRadBorderContentView.BackgroundPropertyRadBorderContentView.BorderColorPropertyRadBorderContentView.BorderBrushPropertyRadBorderContentView.BorderThicknessPropertyRadBorderContentView.CornerRadiusPropertyRadBorderContentView.ContentPaddingPropertyRadBorderContentView.BackgroundColorRadBorderContentView.BackgroundRadBorderContentView.BorderColorRadBorderContentView.BorderBrushRadBorderContentView.BorderThicknessRadBorderContentView.CornerRadiusRadBorderContentView.ContentPaddingRadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnApplyTemplate()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)

Constructors

ItemView()

Initializes a new instance of the ItemView class.

Declaration

cs-api-definition
public ItemView()

Fields

ContentTemplateProperty

Identifies the ContentTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ContentTemplateProperty

Field Value

BindableProperty

FontAttributesProperty

Identifies the FontAttributes property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontFamilyProperty

Identifies the FontFamily property.

Declaration

cs-api-definition
public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Identifies the FontSize property.

Declaration

cs-api-definition
public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

HorizontalContentOptionsProperty

Identifies the HorizontalContentOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalContentOptionsProperty

Field Value

BindableProperty

HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalTextAlignmentProperty

Field Value

BindableProperty

TextColorProperty

Identifies the TextColor property.

Declaration

cs-api-definition
public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextDecorationsProperty

Identifies the TextDecorations property.

Declaration

cs-api-definition
public static readonly BindableProperty TextDecorationsProperty

Field Value

BindableProperty

VerticalContentOptionsProperty

Identifies the VerticalContentOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalContentOptionsProperty

Field Value

BindableProperty

VerticalTextAlignmentProperty

Identifies the VerticalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalTextAlignmentProperty

Field Value

BindableProperty

Properties

ContentTemplate

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.

Declaration

cs-api-definition
public DataTemplate ContentTemplate { get; set; }

Property Value

DataTemplate

FontAttributes

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

Declaration

cs-api-definition
public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontFamily

Gets or sets the font family of the displayed text.

Declaration

cs-api-definition
public string FontFamily { get; set; }

Property Value

string

FontSize

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

Declaration

cs-api-definition
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

HorizontalContentOptions

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

Declaration

cs-api-definition
public LayoutOptions HorizontalContentOptions { get; set; }

Property Value

LayoutOptions

HorizontalTextAlignment

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

Declaration

cs-api-definition
public TextAlignment HorizontalTextAlignment { get; set; }

Property Value

TextAlignment

TextColor

Gets or sets the color of the displayed text.

Declaration

cs-api-definition
public Color TextColor { get; set; }

Property Value

Color

TextDecorations

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

Declaration

cs-api-definition
public TextDecorations TextDecorations { get; set; }

Property Value

TextDecorations

VerticalContentOptions

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

Declaration

cs-api-definition
public LayoutOptions VerticalContentOptions { get; set; }

Property Value

LayoutOptions

VerticalTextAlignment

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

Declaration

cs-api-definition
public TextAlignment VerticalTextAlignment { get; set; }

Property Value

TextAlignment

Methods

ArrangeOverride(Rect)

Declaration

cs-api-definition
protected override Size ArrangeOverride(Rect layoutBounds)

Parameters

layoutBounds

Rect

Returns

Size

InvalidateMeasureOverride()

Declaration

cs-api-definition
protected override void InvalidateMeasureOverride()

MeasureOverride(double, double)

Declaration

cs-api-definition
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)

Parameters

widthConstraint

double

heightConstraint

double

Returns

Size

OnBindingContextChanged()

Called when the binding context changes.

Declaration

cs-api-definition
protected override void OnBindingContextChanged()

Overrides RadCompositeContentView.OnBindingContextChanged()

OnHandlerChanged()

Called when the handler changes.

Declaration

cs-api-definition
protected override void OnHandlerChanged()

Overrides RadContentView.OnHandlerChanged()