Skip to content

Commit 0cbd58a

Browse files
author
SivakumarVairamuthu
committed
Updated the code for CenterButtonSetting
1 parent 42cc045 commit 0cbd58a

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

maui-toolkit/TabView/CenterButton-Customization.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ You can customize the center button using the properties of `CenterButtonSetting
5151
CornerRadius="50"
5252
Background="#6750A4"
5353
ImageSize="25"
54-
DisplayMode="Image">
55-
<tabView:CenterButtonSettings.ImageSource>
56-
<FontImageSource Glyph="&#xe73d;"
57-
Color="#FFFBFE" FontFamily="MauiSampleFontIcon"/>
58-
</tabView:CenterButtonSettings.ImageSource>
54+
DisplayMode="Image"
55+
ImageSource="home.png">
5956
</tabView:CenterButtonSettings>
6057
</tabView:SfTabView.CenterButtonSettings>
6158

@@ -75,12 +72,7 @@ public MainPage()
7572
ImageSize = 25,
7673
Background = Color.FromArgb("#6750A4");
7774
CornerRadius = new CornerRadius(10),
78-
ImageSource = new FontImageSource
79-
{
80-
Glyph = "\uE73D",
81-
Color = Color.FromArgb("#FFFBFE"),
82-
FontFamily = "MauiSampleFontIcon"
83-
}
75+
ImageSource = "home.png"
8476
};
8577

8678
tabView.CenterButtonSettings = centerButtonSettings;

0 commit comments

Comments
 (0)