Skip to content

Commit f9c13ed

Browse files
Merge pull request #3273 from Syncfusion-Content/hotfix/hotfix-v29.1.33
DOCINFRA-2341_merged_using_automation
2 parents 14d2ad7 + 71666a8 commit f9c13ed

File tree

123 files changed

+1814
-1904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+1814
-1904
lines changed

MAUI/Button/Customization.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: Customization in .NET MAUI Button control | Syncfusion®
44
description: Learn here all about Customization support in Syncfusion® .NET MAUI Button (SfButton) control and more.
55
platform: maui
6-
control: Sfbutton
6+
control: SfButton
77
documentation: ug
88
---
99

@@ -22,8 +22,8 @@ The [`TextColor`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.Butto
2222
{% tabs %}
2323
{% highlight xaml %}
2424

25-
<button:SfButton x:Name="button" Text="Button" TextColor = "White">
26-
</button:SfButton>
25+
<buttons:SfButton x:Name="button" Text="Button" TextColor = "White">
26+
</buttons:SfButton>
2727

2828
{% endhighlight %}
2929
{% highlight c# %}
@@ -44,8 +44,8 @@ The [`FontSize`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.Button
4444
{% tabs %}
4545
{% highlight xaml %}
4646

47-
<button:SfButton x:Name="button" Text="Button" FontSize = "18">
48-
</button:SfButton>
47+
<buttons:SfButton x:Name="button" Text="Button" FontSize = "18">
48+
</buttons:SfButton>
4949

5050
{% endhighlight %}
5151
{% highlight c# %}
@@ -66,8 +66,8 @@ The [`FontAttributes`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.
6666
{% tabs %}
6767
{% highlight xaml %}
6868

69-
<button:SfButton x:Name="button" Text="Button" FontAttributes = "Italic">
70-
</button:SfButton>
69+
<buttons:SfButton x:Name="button" Text="Button" FontAttributes = "Italic">
70+
</buttons:SfButton>
7171

7272
{% endhighlight %}
7373
{% highlight c# %}
@@ -88,15 +88,15 @@ The [`FontFamily`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.Butt
8888
{% tabs %}
8989
{% highlight xaml %}
9090

91-
<button:SfButton x:Name="button" Text="Button" FontFamily = "Samantha-Demo">
92-
</button:SfButton>
91+
<buttons:SfButton x:Name="button" Text="Button" FontFamily = "Lobster">
92+
</buttons:SfButton>
9393

9494
{% endhighlight %}
9595
{% highlight c# %}
9696

9797
SfButton button = new SfButton();
9898
button.Text = "Button";
99-
button.FontFamily = "Samantha-Demo";
99+
button.FontFamily = "Lobster";
100100

101101
{% endhighlight %}
102102
{% endtabs %}
@@ -110,8 +110,8 @@ The [`HorizontalTextAlignment`](https://help.syncfusion.com/cr/maui/Syncfusion.M
110110
{% tabs %}
111111
{% highlight xaml %}
112112

113-
<button:SfButton x:Name="button" Text="Button" HorizontalTextAlignment="Center" VerticalTextAlignment="Center">
114-
</button:SfButton>
113+
<buttons:SfButton x:Name="button" Text="Button" HorizontalTextAlignment="Center" VerticalTextAlignment="Center">
114+
</buttons:SfButton>
115115

116116
{% endhighlight %}
117117
{% highlight c# %}
@@ -131,12 +131,12 @@ Users can now customize the [`SfButton`](https://help.syncfusion.com/cr/maui/Syn
131131
{% tabs %}
132132
{% highlight xaml %}
133133

134-
<button:SfButton x:Name="button"
135-
Text="Submit"
134+
<buttons:SfButton x:Name="button"
135+
Text="Submit"
136136
TextTransform="Uppercase"
137137
HorizontalTextAlignment="Center"
138138
VerticalTextAlignment="Center">
139-
</button:SfButton>
139+
</buttons:SfButton>
140140

141141
{% endhighlight %}
142142
{% highlight c# %}
@@ -165,8 +165,8 @@ The [`LineBreakMode`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Button
165165
{% tabs %}
166166
{% highlight xaml %}
167167

168-
<button:SfButton x:Name="button" Text="Add Items To Cart" LineBreakMode="MiddleTruncation" ImageSource="Cart.png">
169-
</button:SfButton>
168+
<buttons:SfButton x:Name="button" Text="Add Items To Cart" LineBreakMode="MiddleTruncation" ImageSource="Cart.png">
169+
</buttons:SfButton>
170170

171171
{% endhighlight %}
172172
{% highlight c# %}
@@ -192,8 +192,8 @@ The [`Background`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Buttons.S
192192
{% tabs %}
193193
{% highlight xaml %}
194194

195-
<button:SfButton x:Name="button" Text="Button" Background = "DeepSkyBlue">
196-
</button:SfButton>
195+
<buttons:SfButton x:Name="button" Text="Button" Background = "DeepSkyBlue">
196+
</buttons:SfButton>
197197

198198
{% endhighlight %}
199199
{% highlight c# %}
@@ -216,8 +216,8 @@ The [`Stroke`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.ButtonBa
216216
{% tabs %}
217217
{% highlight xaml %}
218218

219-
<button:SfButton x:Name="button" Text="Button" Stroke="Red">
220-
</button:SfButton>
219+
<buttons:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="2">
220+
</buttons:SfButton>
221221

222222
{% endhighlight %}
223223
{% highlight c# %}
@@ -229,6 +229,8 @@ button.Stroke = Colors.Red;
229229
{% endhighlight %}
230230
{% endtabs %}
231231

232+
N> To display the `Stroke` color, we should define the `StrokeThickness` property.
233+
232234
![SfButton with stroke](images/customization-images/Button_border.png)
233235

234236
### StrokeThickness
@@ -238,8 +240,8 @@ The [`StrokeThickness`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core
238240
{% tabs %}
239241
{% highlight xaml %}
240242

241-
<button:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="6">
242-
</button:SfButton>
243+
<buttons:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="6">
244+
</buttons:SfButton>
243245

244246
{% endhighlight %}
245247
{% highlight c# %}
@@ -261,8 +263,8 @@ The [`CornerRadius`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.Bu
261263
{% tabs %}
262264
{% highlight xaml %}
263265

264-
<button:SfButton x:Name="button" Text="Button" CornerRadius="20">
265-
</button:SfButton>
266+
<buttons:SfButton x:Name="button" Text="Button" CornerRadius="20">
267+
</buttons:SfButton>
266268

267269
{% endhighlight %}
268270
{% highlight c# %}
@@ -287,8 +289,8 @@ You can enable the Icon image using the [`ShowIcon`](https://help.syncfusion.com
287289
{% tabs %}
288290
{% highlight xaml %}
289291

290-
<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
291-
</button:SfButton>
292+
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
293+
</buttons:SfButton>
292294

293295
{% endhighlight %}
294296
{% highlight c# %}
@@ -310,8 +312,8 @@ N> Enable the [`ShowIcon`](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.C
310312
{% tabs %}
311313
{% highlight xaml %}
312314

313-
<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
314-
</button:SfButton>
315+
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
316+
</buttons:SfButton>
315317

316318
{% endhighlight %}
317319
{% highlight c# %}
@@ -335,8 +337,8 @@ N> Enable the `ShowIcon` property to enable the `ImageSize` property.
335337
{% tabs %}
336338
{% highlight xaml %}
337339

338-
<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True" ImageSize="50">
339-
</button:SfButton>
340+
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True" ImageSize="50">
341+
</buttons:SfButton>
340342

341343
{% endhighlight %}
342344
{% highlight c# %}
@@ -640,7 +642,7 @@ The [EnableRippleEffect](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Cor
640642
{% tabs %}
641643
{% highlight xaml %}
642644

643-
<button:SfButton x:Name="button" Text="Button" EnableRippleEffect="True" />
645+
<buttons:SfButton x:Name="button" Text="Button" EnableRippleEffect="True" />
644646

645647
{% endhighlight %}
646648
{% highlight c# %}
@@ -668,27 +670,27 @@ Refer to this [`documentation`](https://learn.microsoft.com/en-us/dotnet/maui/us
668670

669671
. . .
670672

671-
<button:SfButton Text="Linear Gradient" CornerRadius="20">
672-
<button:SfButton.Background>
673+
<buttons:SfButton Text="Linear Gradient" CornerRadius="20">
674+
<buttons:SfButton.Background>
673675
<LinearGradientBrush>
674676
<LinearGradientBrush.GradientStops>
675677
<GradientStop Color="#0D62D4" Offset="0"/>
676678
<GradientStop Color="#9F3CDC" Offset="1"/>
677679
</LinearGradientBrush.GradientStops>
678680
</LinearGradientBrush>
679-
</button:SfButton.Background>
680-
</button:SfButton>
681+
</buttons:SfButton.Background>
682+
</buttons:SfButton>
681683

682-
<button:SfButton Text="Radial Gradient" CornerRadius="20">
683-
<button:SfButton.Background>
684+
<buttons:SfButton Text="Radial Gradient" CornerRadius="20">
685+
<buttons:SfButton.Background>
684686
<RadialGradientBrush Radius="1.5">
685687
<RadialGradientBrush.GradientStops>
686688
<GradientStop Color="#0D62D4" Offset="0"/>
687689
<GradientStop Color="#9F3CDC" Offset="1"/>
688690
</RadialGradientBrush.GradientStops>
689691
</RadialGradientBrush>
690-
</button:SfButton.Background>
691-
</button:SfButton>
692+
</buttons:SfButton.Background>
693+
</buttons:SfButton>
692694

693695
{% endhighlight %}
694696
{% highlight c# %}
@@ -735,11 +737,11 @@ N> Default value is [`null`].
735737
<local:CommandDemoViewModel />
736738
</ContentPage.BindingContext>
737739

738-
<button:SfButton x:Name="button"
740+
<buttons:SfButton x:Name="button"
739741
Text="Button"
740742
Background="{Binding Background}"
741743
Command="{Binding ButtonCommand}">
742-
</button:SfButton>
744+
</buttons:SfButton>
743745

744746
{% endhighlight %}
745747
{% highlight c# %}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)