I need to add icon above tab text how to do that in xaml ?
1 Answer, 1 is accepted
0
Yana
Telerik team
answered on 06 Jan 2020, 11:07 AM
Hello Ahmed,
TabViewItem provides Header property which should be set to TabViewHeaderItem objectand in it you can add content of your choice. Here is a quick example on how you can use it:
<telerikPrimitives:TabViewItem><telerikPrimitives:TabViewItem.Header><telerikPrimitives:TabViewHeaderItem><telerikPrimitives:TabViewHeaderItem.Content><!-- you can add custom content here --><StackLayoutMargin="5,0,0,0"Orientation="Horizontal"><ContentViewBackgroundColor="#CA5100"HeightRequest="10"VerticalOptions="Center"WidthRequest="10" /><LabelText="Folder" /></StackLayout></telerikPrimitives:TabViewHeaderItem.Content></telerikPrimitives:TabViewHeaderItem></telerikPrimitives:TabViewItem.Header><telerikPrimitives:TabViewItem.Content><LabelMargin="10"Text="This is the content of the tab" /></telerikPrimitives:TabViewItem.Content></telerikPrimitives:TabViewItem>
I hope this would be of help.
Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items