RadTabView
The RadTabView is a flexible navigation control that allows you to build tabbed interfaces. The individual tabs of the control are described as a collection of TabViewItems. Each TabViewItem has its own header and an associated content displayed on selection.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadTabView : TabViewContentBase, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewTabViewContentBaseRadTabView
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTabView class.
public RadTabView()
Fields
ActualHeaderPositionProperty
BindableProperty
Identifies the ActualHeaderPosition property.
public static readonly BindableProperty ActualHeaderPositionProperty
AnimationDurationProperty
BindableProperty
Identifies the AnimationDuration property.
public static readonly BindableProperty AnimationDurationProperty
AnimationEasingProperty
BindableProperty
Identifies the AnimationEasing property.
public static readonly BindableProperty AnimationEasingProperty
ContentStyleProperty
BindableProperty
Identifies the ContentStyle property.
public static readonly BindableProperty ContentStyleProperty
ContentTemplateProperty
BindableProperty
Identifies the ContentTemplate property.
public static readonly BindableProperty ContentTemplateProperty
HeaderItemStyleProperty
BindableProperty
Identifies the HeaderItemStyle property.
public static readonly BindableProperty HeaderItemStyleProperty
HeaderItemStyleSelectorProperty
BindableProperty
Identifies the HeaderItemStyleSelector property.
public static readonly BindableProperty HeaderItemStyleSelectorProperty
HeaderItemTemplateProperty
BindableProperty
Identifies the HeaderItemTemplate property.
public static readonly BindableProperty HeaderItemTemplateProperty
HeaderPositionProperty
BindableProperty
Identifies the HeaderPosition property.
public static readonly BindableProperty HeaderPositionProperty
HeaderSpacingProperty
BindableProperty
Identifies the HeaderSpacing property.
public static readonly BindableProperty HeaderSpacingProperty
HeaderStyleProperty
BindableProperty
Identifies the HeaderStyle property.
public static readonly BindableProperty HeaderStyleProperty
HeaderTemplateProperty
BindableProperty
Identifies the HeaderTemplate property.
public static readonly BindableProperty HeaderTemplateProperty
IsContentSwipeEnabledProperty
BindableProperty
Identifies the IsContentSwipeEnabled property.
public static readonly BindableProperty IsContentSwipeEnabledProperty
IsHeaderOverlaidProperty
BindableProperty
Identifies the IsHeaderOverlaid property.
public static readonly BindableProperty IsHeaderOverlaidProperty
IsHeaderScrollableProperty
BindableProperty
Identifies the IsHeaderScrollable property.
public static readonly BindableProperty IsHeaderScrollableProperty
ItemsSourceProperty
BindableProperty
Identifies the ItemsSource property.
public static readonly BindableProperty ItemsSourceProperty
ItemTemplateProperty
BindableProperty
Identifies the ItemTemplate property.
public static readonly BindableProperty ItemTemplateProperty
SelectedIndexProperty
BindableProperty
Identifies the SelectedIndex property.
public static readonly BindableProperty SelectedIndexProperty
SelectedItemProperty
BindableProperty
Identifies the SelectedItem property.
public static readonly BindableProperty SelectedItemProperty
Properties
Gets or sets the duration in milliseconds of the animation that is run when the selected index changes.
public int AnimationDuration { get; set; }
AnimationEasing
Easing
Gets or sets the Easing of the animation that is run when the selected index changes.
public Easing AnimationEasing { get; set; }
ContentStyle
Style
Gets or sets the Style to be applied to the content area. The target type is TabViewContent.
public Style ContentStyle { get; set; }
ContentTemplate
ControlTemplate
Gets or sets the ControlTemplate to be applied to the content area. The target type is TabViewContent.
public ControlTemplate ContentTemplate { get; set; }
HeaderItemStyle
Style
Gets or sets the Style to be applied to the header items, unless the HeaderItemStyleSelector provides a style for an item. The target type is TabViewHeaderItem.
public Style HeaderItemStyle { get; set; }
Gets or sets the style selector that chooses the styles for the header items. This property has a higher precedence than the HeaderItemStyle property. The target type of the style should be TabViewHeaderItem.
public IStyleSelector HeaderItemStyleSelector { get; set; }
HeaderItemTemplate
ControlTemplate
Gets or sets the ControlTemplate to be applied to the header items. The target type is TabViewHeaderItem.
public ControlTemplate HeaderItemTemplate { get; set; }
Gets or sets the relative position of the header area in respect to the content area. For more information see the TabViewHeaderPosition enumerated type.
public TabViewHeaderPosition HeaderPosition { get; set; }
Gets or sets the spacing in pixels between the header area and the content area.
public double HeaderSpacing { get; set; }
HeaderStyle
Style
Gets or sets the Style to be applied to the header area. The target type is TabViewHeader.
public Style HeaderStyle { get; set; }
HeaderTemplate
ControlTemplate
Gets or sets the ControlTemplate to be applied to the header area. The target type is TabViewHeader.
public ControlTemplate HeaderTemplate { get; set; }
Gets or sets a value indicating whether the tabs can be changed by swiping the content area.
public bool IsContentSwipeEnabled { get; set; }
Get or sets a value indicating whether the header area is overlaid on top of the content area. When the overlay mode is enabled, the header area is centered and partially overlaps with one of the borders of the content area, based on the value of the HeaderPosition property. The padding of the content area is adjusted accordingly, to avoid overlapping with the header area. When the overlay mode is disabled, the header area is placed adjacent to the content area without any overlapping, based on the value of the HeaderPosition property.
public bool IsHeaderOverlaid { get; set; }
Gets or sets a value indicating whether the header area can be scrolled with pan gestures.
public bool IsHeaderScrollable { get; set; }
Gets the collection of TabViewItems, describing the individual tabs of the control.
public IList<TabViewItem> Items { get; }
Gets or sets the items source from which tabview items are generated.
public IEnumerable ItemsSource { get; set; }
ItemTemplate
DataTemplate
Gets or sets the template that generates TabViewItem objects.
public DataTemplate ItemTemplate { get; set; }
Gets or sets the index of the currently selected TabViewItem. The value of this property affects which header item is selected in the header area and which content is displayed in the content area.
public int SelectedIndex { get; set; }
Gets or sets the currently selected TabViewItem. The value of this property affects which header item is selected in the header area and which content is displayed in the content area.
public TabViewItem SelectedItem { get; set; }
Methods
Called when the binding context changes.
protected override void OnBindingContextChanged()
Overrides:
protected override void OnPropertyChanged(string propertyName = null)
Events
Raised when the currently selected TabViewItem has changed.
public event EventHandler SelectionChanged