Skip to content

Commit ba43682

Browse files
Resolved the feedback.
1 parent 2045072 commit ba43682

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,38 @@ TThis repository contains a sample explaining how to Customize the Scroll Button
33

44
### ScrollButton customization support in .NET MAUI TabView
55

6-
The `ScrollButtonColor` and `ScrollButtonBackground` properties let you customize the color and background of scroll buttons in the TabView control, making it visually appealing and consistent.
6+
The `ScrollButtonColor` and `ScrollButtonBackground` properties let you customize the color and background of scroll buttons in the TabView control.
77

88
The following code example illustrate how to Customize ScrollButton in SfTabView.
99

1010
### XAML
1111

1212
```
13-
<tabView:SfTabView ScrollButtonBackground="Violet" ScrollButtonColor="Red">
14-
<!--tab items can be add here >
15-
</tabView:SfTabView>
13+
<Grid VerticalOptions="Start">
14+
<tabView:SfTabView x:Name="tabView" ScrollButtonBackground="Violet" ScrollButtonColor="Red" IsScrollButtonEnabled="True">
15+
16+
<tabView:SfTabItem Header="John">
17+
<StackLayout Padding="10">
18+
<Label Text="John is a software developer with 5 years of experience in building mobile apps."
19+
FontSize="16"
20+
HorizontalOptions="Center"
21+
VerticalOptions="Center"
22+
TextColor="Black" />
23+
</StackLayout>
24+
</tabView:SfTabItem>
25+
26+
<tabView:SfTabItem Header="Emily">
27+
<StackLayout Padding="10">
28+
<Label Text="Emily is a graphic designer who specializes in creating stunning visuals and brand identities."
29+
FontSize="16"
30+
HorizontalOptions="Center"
31+
VerticalOptions="Center"
32+
TextColor="Black" />
33+
</StackLayout>
34+
</tabView:SfTabItem>
35+
</tabView:SfTabView>
36+
</Grid>
37+
1638
```
1739

1840
### C#

TabView/TabView.csproj.user

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
55
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
66
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
7+
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
8+
<DefaultDevice>pixel_7_-_api_35</DefaultDevice>
9+
</PropertyGroup>
10+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
11+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
712
</PropertyGroup>
813
<ItemGroup>
914
<None Update="App.xaml">

0 commit comments

Comments
 (0)