Class
RadItemsView

Represents a lightweight collection of items. Supports scrolling and virtualization, item styles and templates.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

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

Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewRadItemsView

Derived Classes: RadChatListViewRadSelectableItemsView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

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

Constructors

RadItemsView()

Initializes a new instance of the RadItemsView class.

Declaration

cs-api-definition
public RadItemsView()

Fields

EmptyStyleProperty

Identifies the EmptyStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty EmptyStyleProperty

Field Value

BindableProperty

EmptyTemplateProperty

Identifies the EmptyTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty EmptyTemplateProperty

Field Value

BindableProperty

HorizontalScrollBarLayoutModeProperty

Identifies the HorizontalScrollBarLayoutMode property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalScrollBarLayoutModeProperty

Field Value

BindableProperty

HorizontalScrollBarStyleProperty

Identifies the HorizontalScrollBarStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalScrollBarStyleProperty

Field Value

BindableProperty

HorizontalScrollBarTemplateProperty

Identifies the HorizontalScrollBarTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalScrollBarTemplateProperty

Field Value

BindableProperty

HorizontalScrollBarVisibilityProperty

Identifies the HorizontalScrollBarVisibility property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalScrollBarVisibilityProperty

Field Value

BindableProperty

IsEmptyProperty

Identifies the IsEmpty property.

Declaration

cs-api-definition
public static readonly BindableProperty IsEmptyProperty

Field Value

BindableProperty

ItemHoldingCommandProperty

Identifies the ItemHoldingCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemHoldingCommandProperty

Field Value

BindableProperty

ItemStyleProperty

Identifies the ItemStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemStyleProperty

Field Value

BindableProperty

ItemStyleSelectorProperty

Identifies the ItemStyleSelector property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemStyleSelectorProperty

Field Value

BindableProperty

ItemTappedCommandProperty

Identifies the ItemTappedCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemTappedCommandProperty

Field Value

BindableProperty

ItemTemplateProperty

Identifies the ItemTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemTemplateProperty

Field Value

BindableProperty

ItemsSourceProperty

Identifies the ItemsSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ItemsSourceProperty

Field Value

BindableProperty

VerticalScrollBarLayoutModeProperty

Identifies the VerticalScrollBarLayoutMode property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalScrollBarLayoutModeProperty

Field Value

BindableProperty

VerticalScrollBarStyleProperty

Identifies the VerticalScrollBarStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalScrollBarStyleProperty

Field Value

BindableProperty

VerticalScrollBarTemplateProperty

Identifies the VerticalScrollBarTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalScrollBarTemplateProperty

Field Value

BindableProperty

VerticalScrollBarVisibilityProperty

Identifies the VerticalScrollBarVisibility property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalScrollBarVisibilityProperty

Field Value

BindableProperty

Properties

EmptyStyle

Gets or sets the Style applied to the empty content when the control contains no data. The target type of this Style is ItemsEmptyView.

Declaration

cs-api-definition
public Style EmptyStyle { get; set; }

Property Value

Style

EmptyTemplate

Gets or sets the DataTemplate used to display an empty content when the control contains no data.

Declaration

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

Property Value

DataTemplate

HorizontalScrollBarLayoutMode

Gets or sets the layout mode of the horizontal scroll bar. For more information see the ScrollBarLayoutMode type.

Declaration

cs-api-definition
public ScrollBarLayoutMode HorizontalScrollBarLayoutMode { get; set; }

Property Value

ScrollBarLayoutMode

HorizontalScrollBarStyle

Gets or sets the Style mode of the horizontal scroll bar. The target type of this Style is RadScrollBar.

Declaration

cs-api-definition
public Style HorizontalScrollBarStyle { get; set; }

Property Value

Style

HorizontalScrollBarTemplate

Gets or sets the ControlTemplate mode of the horizontal scroll bar. The target type of this ControlTemplate is RadScrollBar.

Declaration

cs-api-definition
public ControlTemplate HorizontalScrollBarTemplate { get; set; }

Property Value

ControlTemplate

HorizontalScrollBarVisibility

Gets or sets the visibility of the horizontal scroll bar. For more information see the ScrollBarVisibility type.

Declaration

cs-api-definition
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }

Property Value

ScrollBarVisibility

IsEmpty

Gets a value indicating whether the control contains no data.

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

ItemHoldingCommand

Gets or sets a command to execute when an item is held. The command accepts a single parameter with the item being held.

Declaration

cs-api-definition
public ICommand ItemHoldingCommand { get; set; }

Property Value

ICommand

ItemStyle

Gets or sets the Style applied to each item of the control. The target type of this Style is ItemView.

Declaration

cs-api-definition
public Style ItemStyle { get; set; }

Property Value

Style

ItemStyleSelector

Gets or sets a IStyleSelector used to select a Style for each item of the control. The target type of the Style is ItemView.

Declaration

cs-api-definition
public IStyleSelector ItemStyleSelector { get; set; }

Property Value

IStyleSelector

ItemTappedCommand

Gets or sets a command to execute when an item is tapped. The command accepts a single parameter with the item being tapped.

Declaration

cs-api-definition
public ICommand ItemTappedCommand { get; set; }

Property Value

ICommand

ItemTemplate

Gets or sets the DataTemplate that defines the appearance of each item.

Declaration

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

Property Value

DataTemplate

ItemsSource

Gets or sets the collection of items used to populate the control.

Declaration

cs-api-definition
public IList ItemsSource { get; set; }

Property Value

IList

ScrollToCommand

Gets a command that scrolls to an item in the control, which is specified as a parameter.

Declaration

cs-api-definition
public ICommand ScrollToCommand { get; }

Property Value

ICommand

VerticalScrollBarLayoutMode

Gets or sets the layout mode of the vertical scroll bar. For more information see the ScrollBarLayoutMode type.

Declaration

cs-api-definition
public ScrollBarLayoutMode VerticalScrollBarLayoutMode { get; set; }

Property Value

ScrollBarLayoutMode

VerticalScrollBarStyle

Gets or sets the Style mode of the vertical scroll bar. The target type of this Style is RadScrollBar.

Declaration

cs-api-definition
public Style VerticalScrollBarStyle { get; set; }

Property Value

Style

VerticalScrollBarTemplate

Gets or sets the ControlTemplate mode of the vertical scroll bar. The target type of this ControlTemplate is RadScrollBar.

Declaration

cs-api-definition
public ControlTemplate VerticalScrollBarTemplate { get; set; }

Property Value

ControlTemplate

VerticalScrollBarVisibility

Gets or sets the visibility of the vertical scroll bar. For more information see the ScrollBarVisibility type.

Declaration

cs-api-definition
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }

Property Value

ScrollBarVisibility

Methods

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

Overrides RadCompositeContentView.OnApplyTemplate()

ScrollTo(object)

Scrolls the visible area of the control so that the specified item is visible.

Declaration

cs-api-definition
public void ScrollTo(object dataItem)

Parameters

dataItem

object

Specifies the item to scroll to.

Events

ItemHolding

Raised when an item in the control is held. For more information see the ItemViewHoldingEventArgs type.

Declaration

cs-api-definition
public event EventHandler<ItemViewHoldingEventArgs> ItemHolding

Event Value

EventHandler<ItemViewHoldingEventArgs>

ItemTapped

Raised when an item in the control was tapped. For more information see the ItemViewTappedEventArgs type.

Declaration

cs-api-definition
public event EventHandler<ItemViewTappedEventArgs> ItemTapped

Event Value

EventHandler<ItemViewTappedEventArgs>

ItemsSourceChanged

Raised when the ItemsSource property has changed.

Declaration

cs-api-definition
public event EventHandler ItemsSourceChanged

Event Value

EventHandler