Skip to content

DOCINFRA-2341_merged_using_automation #3273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f52a735
Revamp the UG documentation of .NET MAUI SfComboBox
Hemalatha-SF4675 May 4, 2025
8f966e5
Revamp the UG documentation of .NET MAUI SfMaskedEntry
Hemalatha-SF4675 May 4, 2025
c0d07e3
Revamp the UG documentation of .NET MAUI Rating and SignaturePad
Hemalatha-SF4675 May 4, 2025
960eb3d
Revamp the UG documentation of .NET MAUI SfChip
Hemalatha-SF4675 May 4, 2025
f876afa
Revamp the UG documentation of .NET MAUI SfCarousel.
Hemalatha-SF4675 May 4, 2025
5de3e65
Revamp the UG documentation of .NET MAUI SfButton
Hemalatha-SF4675 May 4, 2025
74abaff
Revamp the UG documentation of .NET MAUI TextInputLayout
Hemalatha-SF4675 May 4, 2025
5fec3cf
Updated the images
Hemalatha-SF4675 May 5, 2025
2107f0f
update TimePicker.jpg
Hemalatha-SF4675 May 5, 2025
f6a7657
revert TimePicker.jpg image
Hemalatha-SF4675 May 5, 2025
4dcd738
Merge pull request #3263 from syncfusion-content/MaskedEntry-UG-Revam…
Choza-rajan May 6, 2025
06de844
Merge pull request #3262 from syncfusion-content/Revamping-SfComboBox…
Choza-rajan May 6, 2025
57dbc7f
Merge pull request #3269 from syncfusion-content/Revamping-SfTextInpu…
Choza-rajan May 6, 2025
7785a5b
Merge pull request #3266 from syncfusion-content/Chip-UG-Revamping-ho…
Choza-rajan May 6, 2025
943cbe4
Merge pull request #3267 from syncfusion-content/Carousel-Revamping-h…
Choza-rajan May 6, 2025
c4c9e5f
Merge pull request #3265 from syncfusion-content/Revamping-Rating-Hot…
Choza-rajan May 6, 2025
733210f
Merge pull request #3268 from syncfusion-content/Revamping-button-hot…
Choza-rajan May 6, 2025
8ca84c5
Update Add-the-custom-view-for-button.md
PrithisIyyappan May 6, 2025
71666a8
Merge pull request #3272 from syncfusion-content/PrithisIyyappan-patch-2
Choza-rajan May 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 44 additions & 42 deletions MAUI/Button/Customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
title: Customization in .NET MAUI Button control | Syncfusion®
description: Learn here all about Customization support in Syncfusion® .NET MAUI Button (SfButton) control and more.
platform: maui
control: Sfbutton
control: SfButton
documentation: ug
---

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

<button:SfButton x:Name="button" Text="Button" TextColor = "White">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" TextColor = "White">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" FontSize = "18">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" FontSize = "18">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" FontAttributes = "Italic">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" FontAttributes = "Italic">
</buttons:SfButton>

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

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

{% endhighlight %}
{% highlight c# %}

SfButton button = new SfButton();
button.Text = "Button";
button.FontFamily = "Samantha-Demo";
button.FontFamily = "Lobster";

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

<button:SfButton x:Name="button" Text="Button" HorizontalTextAlignment="Center" VerticalTextAlignment="Center">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" HorizontalTextAlignment="Center" VerticalTextAlignment="Center">
</buttons:SfButton>

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

<button:SfButton x:Name="button"
Text="Submit"
<buttons:SfButton x:Name="button"
Text="Submit"
TextTransform="Uppercase"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center">
</button:SfButton>
</buttons:SfButton>

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

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

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

<button:SfButton x:Name="button" Text="Button" Background = "DeepSkyBlue">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" Background = "DeepSkyBlue">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" Stroke="Red">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="2">
</buttons:SfButton>

{% endhighlight %}
{% highlight c# %}
Expand All @@ -229,6 +229,8 @@ button.Stroke = Colors.Red;
{% endhighlight %}
{% endtabs %}

N> To display the `Stroke` color, we should define the `StrokeThickness` property.

![SfButton with stroke](images/customization-images/Button_border.png)

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

<button:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="6">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" Stroke="Red" StrokeThickness="6">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" CornerRadius="20">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" CornerRadius="20">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True">
</buttons:SfButton>

{% endhighlight %}
{% highlight c# %}
Expand All @@ -335,8 +337,8 @@ N> Enable the `ShowIcon` property to enable the `ImageSize` property.
{% tabs %}
{% highlight xaml %}

<button:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True" ImageSize="50">
</button:SfButton>
<buttons:SfButton x:Name="button" Text="Button" ImageSource="Heart.png" ShowIcon="True" ImageSize="50">
</buttons:SfButton>

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

<button:SfButton x:Name="button" Text="Button" EnableRippleEffect="True" />
<buttons:SfButton x:Name="button" Text="Button" EnableRippleEffect="True" />

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

. . .

<button:SfButton Text="Linear Gradient" CornerRadius="20">
<button:SfButton.Background>
<buttons:SfButton Text="Linear Gradient" CornerRadius="20">
<buttons:SfButton.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Color="#0D62D4" Offset="0"/>
<GradientStop Color="#9F3CDC" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</button:SfButton.Background>
</button:SfButton>
</buttons:SfButton.Background>
</buttons:SfButton>

<button:SfButton Text="Radial Gradient" CornerRadius="20">
<button:SfButton.Background>
<buttons:SfButton Text="Radial Gradient" CornerRadius="20">
<buttons:SfButton.Background>
<RadialGradientBrush Radius="1.5">
<RadialGradientBrush.GradientStops>
<GradientStop Color="#0D62D4" Offset="0"/>
<GradientStop Color="#9F3CDC" Offset="1"/>
</RadialGradientBrush.GradientStops>
</RadialGradientBrush>
</button:SfButton.Background>
</button:SfButton>
</buttons:SfButton.Background>
</buttons:SfButton>

{% endhighlight %}
{% highlight c# %}
Expand Down Expand Up @@ -735,11 +737,11 @@ N> Default value is [`null`].
<local:CommandDemoViewModel />
</ContentPage.BindingContext>

<button:SfButton x:Name="button"
<buttons:SfButton x:Name="button"
Text="Button"
Background="{Binding Background}"
Command="{Binding ButtonCommand}">
</button:SfButton>
</buttons:SfButton>

{% endhighlight %}
{% highlight c# %}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_cornerradius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_fontfamily.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_fontsize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/customization-images/Button_textColor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/overview/Overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/Button/Images/right-to-left/RTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions MAUI/Button/Visual-States.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ N> The visual states [Checked](https://help.syncfusion.com/cr/maui/Syncfusion.Ma
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="Background" Value="Orange"/>
<Setter Property="Background" Value="#6A4C9C"/>
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Checked">
Expand Down Expand Up @@ -83,7 +83,7 @@ N> The visual states [Checked](https://help.syncfusion.com/cr/maui/Syncfusion.Ma
{
Name = "Normal"
};
normalState.Setters.Add(new Setter { Property = SfButton.BackgroundProperty, Value = Colors.Orange });
normalState.Setters.Add(new Setter { Property = SfButton.BackgroundProperty, Value = Color.FromRgba("#6A4C9C") });

VisualState checkedState = new VisualState
{
Expand Down
87 changes: 41 additions & 46 deletions MAUI/Button/how-to/Add-the-custom-view-for-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ xmlns:busy="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"

. . .

<ContentPage.Resources>
<ResourceDictionary>
<DataTemplate x:Key="happyTemplate">
<HorizontalStackLayout>
<busy:SfBusyIndicator AnimationType="SingleCircle" IsRunning="True" TextColor="White" WidthRequest="80" HeightRequest="60" IndicatorColor="White" VerticalOptions="Center" HorizontalOptions="End"/>
<Label Text="Loading..." FontSize="20" HorizontalOptions="Start" VerticalOptions="Center" TextColor="White" />
</HorizontalStackLayout>
</DataTemplate>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<button:SfButton CornerRadius="20" WidthRequest="300" Content="{x:StaticResource happyTemplate}" Text="SfButton" />
<VerticalStackLayout>
<buttons:SfButton CornerRadius="10" Text="SfButton" Background="#4125BC">
<buttons:SfButton.Content>
<DataTemplate>
<HorizontalStackLayout Spacing = "8" Padding="5">
<ActivityIndicator Color = "White" IsRunning="True"/>
<Label Text = "Loading..." VerticalOptions="Center" TextColor="White"/>
</HorizontalStackLayout>
</DataTemplate>
</buttons:SfButton.Content>
</buttons:SfButton>
</VerticalStackLayout>
</ContentPage.Content>

{% endhighlight %}
Expand All @@ -39,49 +40,43 @@ using Syncfusion.Maui.Core;

. . .

SfButton button = new SfButton();
var happyTemplate = new DataTemplate(() =>
var customTemplate = new DataTemplate(() =>
{
// Create the HorizontalStackLayout.
var stackLayout = new Microsoft.Maui.Controls.StackLayout()
{
Orientation = StackOrientation.Horizontal,
VerticalOptions = LayoutOptions.Center
};

// Create the SfBusyIndicator.
var busyIndicator = new SfBusyIndicator()
var activityIndicator = new ActivityIndicator
{
Color = Colors.White,
IsRunning = true
};
var label = new Label
{
Text = "Loading...",
TextColor = Colors.White,
VerticalOptions = LayoutOptions.Center
};
var stackLayout = new HorizontalStackLayout
{
Spacing = 8,
Padding = new Thickness(5)
};
stackLayout.Children.Add(activityIndicator);
stackLayout.Children.Add(label);
return stackLayout;
});
SfButton button = new SfButton
{
AnimationType = AnimationType.SingleCircle,
IsRunning = true,
TextColor = Colors.White,
WidthRequest = 80,
HeightRequest = 60,
IndicatorColor = Colors.Yellow,
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.End
Text = "SfButton",
Background = Color.FromArgb("#4125BC"),
CornerRadius= 10,
Content = customTemplate
};

// Create the Label.
var label = new Label
Content = new VerticalStackLayout
{
Text = "Loading...",
FontSize = 20,
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Center,
TextColor = Colors.White
Children = { button }
};

// Add the busyIndicator and label to the stackLayout.
stackLayout.Children.Add(busyIndicator);
stackLayout.Children.Add(label);

// Return the constructed stackLayout as the root of the DataTemplate.
return stackLayout;

});
button.Content = happyTemplate;
{% endhighlight %}
{% endtabs %}

![SfButton with custom view](images/button-content.png)
![SfButton with custom view](images/button-content.png)
2 changes: 2 additions & 0 deletions MAUI/Carousel-View/Animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The [Duration](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Carousel.SfCa

<carousel:SfCarousel x:Name="carousel"
ItemsSource="{Binding ImageCollection}"
ItemTemplate="{StaticResource itemTemplate}"
Duration="1000"/>

{% endhighlight %}
Expand All @@ -25,6 +26,7 @@ The [Duration](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Carousel.SfCa

SfCarousel carousel = new SfCarousel();
carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
carousel.ItemTemplate = itemTemplate;
carousel.Duration = 1000;

{% endhighlight %}
Expand Down
Loading