New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Constructors

Initializes a new instance of the RadTabView class.

C#
public RadTabView()

Fields

Identifies the ActualHeaderPosition property.

C#
public static readonly BindableProperty ActualHeaderPositionProperty

Identifies the AnimationDuration property.

C#
public static readonly BindableProperty AnimationDurationProperty

AnimationEasingProperty

BindableProperty

Identifies the AnimationEasing property.

C#
public static readonly BindableProperty AnimationEasingProperty

ContentStyleProperty

BindableProperty

Identifies the ContentStyle property.

C#
public static readonly BindableProperty ContentStyleProperty

ContentTemplateProperty

BindableProperty

Identifies the ContentTemplate property.

C#
public static readonly BindableProperty ContentTemplateProperty

HeaderItemStyleProperty

BindableProperty

Identifies the HeaderItemStyle property.

C#
public static readonly BindableProperty HeaderItemStyleProperty

Identifies the HeaderItemStyleSelector property.

C#
public static readonly BindableProperty HeaderItemStyleSelectorProperty

Identifies the HeaderItemTemplate property.

C#
public static readonly BindableProperty HeaderItemTemplateProperty

HeaderPositionProperty

BindableProperty

Identifies the HeaderPosition property.

C#
public static readonly BindableProperty HeaderPositionProperty

HeaderSpacingProperty

BindableProperty

Identifies the HeaderSpacing property.

C#
public static readonly BindableProperty HeaderSpacingProperty

HeaderStyleProperty

BindableProperty

Identifies the HeaderStyle property.

C#
public static readonly BindableProperty HeaderStyleProperty

HeaderTemplateProperty

BindableProperty

Identifies the HeaderTemplate property.

C#
public static readonly BindableProperty HeaderTemplateProperty

Identifies the IsContentSwipeEnabled property.

C#
public static readonly BindableProperty IsContentSwipeEnabledProperty

IsHeaderOverlaidProperty

BindableProperty

Identifies the IsHeaderOverlaid property.

C#
public static readonly BindableProperty IsHeaderOverlaidProperty

Identifies the IsHeaderScrollable property.

C#
public static readonly BindableProperty IsHeaderScrollableProperty

ItemsSourceProperty

BindableProperty

Identifies the ItemsSource property.

C#
public static readonly BindableProperty ItemsSourceProperty

ItemTemplateProperty

BindableProperty

Identifies the ItemTemplate property.

C#
public static readonly BindableProperty ItemTemplateProperty

SelectedIndexProperty

BindableProperty

Identifies the SelectedIndex property.

C#
public static readonly BindableProperty SelectedIndexProperty

SelectedItemProperty

BindableProperty

Identifies the SelectedItem property.

C#
public static readonly BindableProperty SelectedItemProperty

Properties

Gets the effective header position, accounting for right-to-left flow direction. When the flow direction is right-to-left, Left becomes Right and vice versa.

C#
public TabViewHeaderPosition ActualHeaderPosition { get; }

Gets or sets the duration in milliseconds of the animation that is run when the selected index changes.

C#
public int AnimationDuration { get; set; }

Gets or sets the Easing of the animation that is run when the selected index changes.

C#
public Easing AnimationEasing { get; set; }

Gets or sets the Style to be applied to the content area. The target type is TabViewContent.

C#
public Style ContentStyle { get; set; }

ContentTemplate

ControlTemplate

Gets or sets the ControlTemplate to be applied to the content area. The target type is TabViewContent.

C#
public ControlTemplate ContentTemplate { get; set; }

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.

C#
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.

C#
public IStyleSelector HeaderItemStyleSelector { get; set; }

HeaderItemTemplate

ControlTemplate

Gets or sets the ControlTemplate to be applied to the header items. The target type is TabViewHeaderItem.

C#
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.

C#
public TabViewHeaderPosition HeaderPosition { get; set; }

Gets or sets the spacing in pixels between the header area and the content area.

C#
public double HeaderSpacing { get; set; }

Gets or sets the Style to be applied to the header area. The target type is TabViewHeader.

C#
public Style HeaderStyle { get; set; }

HeaderTemplate

ControlTemplate

Gets or sets the ControlTemplate to be applied to the header area. The target type is TabViewHeader.

C#
public ControlTemplate HeaderTemplate { get; set; }

Gets or sets a value indicating whether the tabs can be changed by swiping the content area.

C#
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.

C#
public bool IsHeaderOverlaid { get; set; }

Gets or sets a value indicating whether the header area can be scrolled with pan gestures.

C#
public bool IsHeaderScrollable { get; set; }

Gets the collection of TabViewItems, describing the individual tabs of the control.

C#
public IList<TabViewItem> Items { get; }

Gets or sets the items source from which tabview items are generated.

C#
public IEnumerable ItemsSource { get; set; }

ItemTemplate

DataTemplate

Gets or sets the template that generates TabViewItem objects.

C#
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.

C#
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.

C#
public TabViewItem SelectedItem { get; set; }

Methods

Called when the binding context changes.

C#
protected override void OnBindingContextChanged()

Overrides: RadContentView.OnBindingContextChanged()

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Events

Raised when the currently selected TabViewItem has changed.

C#
public event EventHandler SelectionChanged