ClassRadItemsView
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:
public class RadItemsView : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewRadItemsView
Derived Classes:
Implements:
Inherited Members
Constructors
RadItemsView()
Initializes a new instance of the RadItemsView class.
Declaration
public RadItemsView()
Fields
EmptyStyleProperty
Identifies the EmptyStyle property.
Declaration
public static readonly BindableProperty EmptyStyleProperty
Field Value
BindableProperty
EmptyTemplateProperty
Identifies the EmptyTemplate property.
Declaration
public static readonly BindableProperty EmptyTemplateProperty
Field Value
BindableProperty
HorizontalScrollBarLayoutModeProperty
Identifies the HorizontalScrollBarLayoutMode property.
Declaration
public static readonly BindableProperty HorizontalScrollBarLayoutModeProperty
Field Value
BindableProperty
HorizontalScrollBarStyleProperty
Identifies the HorizontalScrollBarStyle property.
Declaration
public static readonly BindableProperty HorizontalScrollBarStyleProperty
Field Value
BindableProperty
HorizontalScrollBarTemplateProperty
Identifies the HorizontalScrollBarTemplate property.
Declaration
public static readonly BindableProperty HorizontalScrollBarTemplateProperty
Field Value
BindableProperty
HorizontalScrollBarVisibilityProperty
Identifies the HorizontalScrollBarVisibility property.
Declaration
public static readonly BindableProperty HorizontalScrollBarVisibilityProperty
Field Value
BindableProperty
IsEmptyProperty
Identifies the IsEmpty property.
Declaration
public static readonly BindableProperty IsEmptyProperty
Field Value
BindableProperty
ItemHoldingCommandProperty
Identifies the ItemHoldingCommand property.
Declaration
public static readonly BindableProperty ItemHoldingCommandProperty
Field Value
BindableProperty
ItemStyleProperty
Identifies the ItemStyle property.
Declaration
public static readonly BindableProperty ItemStyleProperty
Field Value
BindableProperty
ItemStyleSelectorProperty
Identifies the ItemStyleSelector property.
Declaration
public static readonly BindableProperty ItemStyleSelectorProperty
Field Value
BindableProperty
ItemTappedCommandProperty
Identifies the ItemTappedCommand property.
Declaration
public static readonly BindableProperty ItemTappedCommandProperty
Field Value
BindableProperty
ItemTemplateProperty
Identifies the ItemTemplate property.
Declaration
public static readonly BindableProperty ItemTemplateProperty
Field Value
BindableProperty
ItemsSourceProperty
Identifies the ItemsSource property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
BindableProperty
VerticalScrollBarLayoutModeProperty
Identifies the VerticalScrollBarLayoutMode property.
Declaration
public static readonly BindableProperty VerticalScrollBarLayoutModeProperty
Field Value
BindableProperty
VerticalScrollBarStyleProperty
Identifies the VerticalScrollBarStyle property.
Declaration
public static readonly BindableProperty VerticalScrollBarStyleProperty
Field Value
BindableProperty
VerticalScrollBarTemplateProperty
Identifies the VerticalScrollBarTemplate property.
Declaration
public static readonly BindableProperty VerticalScrollBarTemplateProperty
Field Value
BindableProperty
VerticalScrollBarVisibilityProperty
Identifies the VerticalScrollBarVisibility property.
Declaration
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
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
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
public ScrollBarLayoutMode HorizontalScrollBarLayoutMode { get; set; }
Property Value
HorizontalScrollBarStyle
Gets or sets the Style mode of the horizontal scroll bar. The target type of this Style is RadScrollBar.
Declaration
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
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
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
ScrollBarVisibility
IsEmpty
Gets a value indicating whether the control contains no data.
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
public ICommand ItemHoldingCommand { get; set; }
Property Value
ItemStyle
Gets or sets the Style applied to each item of the control. The target type of this Style is ItemView.
Declaration
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
public IStyleSelector ItemStyleSelector { get; set; }
Property Value
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
public ICommand ItemTappedCommand { get; set; }
Property Value
ItemTemplate
Gets or sets the DataTemplate that defines the appearance of each item.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
ItemsSource
Gets or sets the collection of items used to populate the control.
ScrollToCommand
Gets a command that scrolls to an item in the control, which is specified as a parameter.
VerticalScrollBarLayoutMode
Gets or sets the layout mode of the vertical scroll bar. For more information see the ScrollBarLayoutMode type.
Declaration
public ScrollBarLayoutMode VerticalScrollBarLayoutMode { get; set; }
Property Value
VerticalScrollBarStyle
Gets or sets the Style mode of the vertical scroll bar. The target type of this Style is RadScrollBar.
Declaration
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
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
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
ScrollBarVisibility
Methods
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Overrides
ScrollTo(object)
Scrolls the visible area of the control so that the specified item is visible.
Declaration
public void ScrollTo(object dataItem)
Parameters
dataItem
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
public event EventHandler<ItemViewHoldingEventArgs> ItemHolding
Event Value
ItemTapped
Raised when an item in the control was tapped. For more information see the ItemViewTappedEventArgs type.
Declaration
public event EventHandler<ItemViewTappedEventArgs> ItemTapped
Event Value
ItemsSourceChanged
Raised when the ItemsSource property has changed.