Skip to content

Commit 966cf39

Browse files
committed
.
1 parent 1d1d458 commit 966cf39

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4-
x:Class="TabViewSample.MainPage"
5-
xmlns:local="clr-namespace:TabViewSample"
6-
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
7-
xmlns:tabView="clr-namespace:Syncfusion.Maui.TabView;assembly=Syncfusion.Maui.TabView">
8-
<ContentPage.BindingContext>
9-
<local:MainPageViewModel/>
10-
</ContentPage.BindingContext>
11-
<Grid>
12-
<tabView:SfTabView x:Name="tabView" ItemsSource="{Binding TabItems}" TabWidthMode="SizeToContent" TabHeaderPadding="0" FlowDirection="RightToLeft">
13-
<tabView:SfTabView.Behaviors>
14-
<toolkit:EventToCommandBehavior Command="{Binding SelectionChangedCommand}" CommandParameter="{x:Reference tabView}" EventName="SelectionChanged"/>
15-
</tabView:SfTabView.Behaviors>
16-
<tabView:SfTabView.HeaderItemTemplate>
17-
<DataTemplate >
18-
<Label x:Name="headerlabel" Padding="15,0,15,0" VerticalTextAlignment="Center" VerticalOptions="Center"
19-
Text="{Binding Name}" TextColor="{Binding TextColor}"/>
20-
</DataTemplate>
21-
</tabView:SfTabView.HeaderItemTemplate>
22-
<tabView:SfTabView.ContentItemTemplate>
23-
<DataTemplate>
24-
<Grid HorizontalOptions="Center" VerticalOptions="Center">
25-
<Label x:Name="contentLabel" TextColor="Black" Text="{Binding Name}" HorizontalOptions="Center" VerticalOptions="Center"/>
26-
</Grid>
27-
</DataTemplate>
28-
</tabView:SfTabView.ContentItemTemplate>
29-
</tabView:SfTabView>
30-
</Grid>
31-
</ContentPage>
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
x:Class="TabViewSample.MainPage"
5+
xmlns:local="clr-namespace:TabViewSample"
6+
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
7+
xmlns:tabView="clr-namespace:Syncfusion.Maui.TabView;assembly=Syncfusion.Maui.TabView">
8+
<ContentPage.BindingContext>
9+
<local:MainPageViewModel/>
10+
</ContentPage.BindingContext>
11+
<Grid>
12+
<tabView:SfTabView x:Name="tabView" ItemsSource="{Binding TabItems}" TabWidthMode="SizeToContent" TabHeaderPadding="0" FlowDirection="RightToLeft">
13+
<tabView:SfTabView.Behaviors>
14+
<toolkit:EventToCommandBehavior Command="{Binding SelectionChangedCommand}" CommandParameter="{x:Reference tabView}" EventName="SelectionChanged"/>
15+
</tabView:SfTabView.Behaviors>
16+
<tabView:SfTabView.HeaderItemTemplate>
17+
<DataTemplate >
18+
<Label x:Name="headerlabel" Padding="15,0,15,0" VerticalTextAlignment="Center" VerticalOptions="Center"
19+
Text="{Binding Name}" TextColor="{Binding TextColor}"/>
20+
</DataTemplate>
21+
</tabView:SfTabView.HeaderItemTemplate>
22+
<tabView:SfTabView.ContentItemTemplate>
23+
<DataTemplate>
24+
<Grid HorizontalOptions="Center" VerticalOptions="Center">
25+
<Label x:Name="contentLabel" TextColor="Black" Text="{Binding Name}" HorizontalOptions="Center" VerticalOptions="Center"/>
26+
</Grid>
27+
</DataTemplate>
28+
</tabView:SfTabView.ContentItemTemplate>
29+
</tabView:SfTabView>
30+
</Grid>
31+
</ContentPage>

0 commit comments

Comments
 (0)