Selection

Telerik TabView for .NET MAUI exposes properties that help you work with the item selection:

  • SelectedItem(of type Telerik.Maui.Controls.TabViewItem)— set the selected item.
  • TabViewItem can be selected by setting its IsSelected(bool) property to True.

Example with SelectedItem

RadTabView tabView = new RadTabView();
tabView.Items.Add(new Telerik.Maui.Controls.TabViewItem() { HeaderText = "Home" });
tabView.Items.Add(new Telerik.Maui.Controls.TabViewItem() { HeaderText = "Folder" });
tabView.Items.Add(new Telerik.Maui.Controls.TabViewItem() { HeaderText = "View" });

tabView.SelectedItem = tabView.Items[1];

And the namespace used:

using Telerik.Maui.Controls;

Example with IsSelected

<telerik:RadTabView x:Name="tabView">
    <telerik:TabViewItem HeaderText="Home" IsSelected="True">
        <Label Margin="10" Text="This is the content of the Home tab" />
    </telerik:TabViewItem>
    <telerik:TabViewItem HeaderText="Folder">
        <Label Margin="10" Text="This is the content of the Folder tab" />
    </telerik:TabViewItem>
    <telerik:TabViewItem HeaderText="View">
        <Label Margin="10" Text="This is the content of the View tab" />
    </telerik:TabViewItem>
</telerik:RadTabView>

And the namespace used:

Events

  • SelectionChanged event which is raised when the currently selected TabViewItem has changed. The SelectionChanged event handler receives two parameters:
    • The Sender which is of type Telerik.Maui.Controls.RadTabView.
    • and EventArgs.

See Also

In this article
Not finding the help you need?