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