Skip to content

964027 - Fix the alignment issue for the MAUI Color Picker control #3373

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 5 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion MAUI/ColorPicker/Display-View.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ colorPicker.SelectedColorTemplate = new DataTemplate(() =>
return stackLayout;
});


Content = colorPicker;

{% endhighlight %}
Expand Down
6 changes: 3 additions & 3 deletions MAUI/ColorPicker/Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ The `ColorChanged` event is triggered when the user selects a color. Its behavio

The event arguments are of type `ColorChangedEventArgs` and include the following properties:

* OldColor: The previously selected color.
* NewColor: The newly selected color.
* `OldColor:` The previously selected color.
* `NewColor:` The newly selected color.

{% tabs %}

Expand Down Expand Up @@ -89,7 +89,7 @@ private void OnColorChanged(object sender, ColorChangedEventArgs e)

The `ColorSelected` event is triggered when the user selects a color by clicking or tapping on the selected color view. The event arguments are of type `ColorSelectedEventArgs` and include the following property:

* SelectedColor: The color currently selected by the user.
* `SelectedColor:` The color currently selected by the user.

{% tabs %}

Expand Down
86 changes: 44 additions & 42 deletions MAUI/ColorPicker/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@ Before proceeding, ensure the following are set up:

[Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core/) NuGet is a dependent package for all Syncfusion<sup>®</sup> controls of .NET MAUI. In the `MauiProgram.cs` file, register the handler for Syncfusion<sup>®</sup> core.

{% highlight c# hl_lines="6 17" %}
{% highlight c# hl_lines="1 12" %}

using Syncfusion.Maui.Core.Hosting;

namespace ColorPickerSample
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
public static MauiApp CreateMauiApp()
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
}
}
}
Expand All @@ -79,8 +79,8 @@ namespace ColorPickerSample
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs">

<ContentPage.Content>
<inputs:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>
<inputs:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>

</ContentPage>

Expand Down Expand Up @@ -136,26 +136,26 @@ Before proceeding, ensure the following are set up:

[Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core/) NuGet is a dependent package for all Syncfusion<sup>®</sup> controls of .NET MAUI. In the `MauiProgram.cs` file, register the handler for Syncfusion<sup>®</sup> core.

{% highlight c# hl_lines="6 17" %}
{% highlight c# hl_lines="1 12" %}

using Syncfusion.Maui.Core.Hosting;

namespace ColorPickerSample
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
public static MauiApp CreateMauiApp()
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
}
}
}
Expand All @@ -177,8 +177,8 @@ namespace ColorPickerSample
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs">

<ContentPage.Content>
<core:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>
<inputs:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>

</ContentPage>

Expand Down Expand Up @@ -233,26 +233,26 @@ Before proceeding, ensure the following are set up:

[Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core/) NuGet is a dependent package for all Syncfusion<sup>®</sup> controls of .NET MAUI. In the `MauiProgram.cs` file, register the handler for Syncfusion<sup>®</sup> core.

{% highlight c# hl_lines="6 17" %}
{% highlight c# hl_lines="1 12" %}

using Syncfusion.Maui.Core.Hosting;

namespace ColorPickerSample
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
public static MauiApp CreateMauiApp()
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

return builder.Build();
}
}
}
Expand All @@ -272,9 +272,11 @@ namespace ColorPickerSample
<ContentPage
...
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs">

<ContentPage.Content>
<core:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>
<inputs:SfColorPicker x:Name="colorPicker"/>
</ContentPage.Content>

</ContentPage>

{% endhighlight %}
Expand Down
Binary file modified MAUI/ColorPicker/Images/Customization/AlignTop.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/ColorPicker/Images/Customization/AlphaSlider.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/ColorPicker/Images/Customization/HideActionButtons.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/ColorPicker/Images/Customization/HideSwitchColorMode.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/ColorPicker/Images/Customization/InputArea.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/ColorPicker/Images/Customization/NoColor.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/ColorPicker/Images/Customization/PaletteCount.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/ColorPicker/Images/Customization/PaletteSpacing.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/ColorPicker/Images/Customization/PopupBackground.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/ColorPicker/Images/Customization/RecentColors.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/ColorPicker/Images/DisplayView/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/ColorPicker/Images/Inline/Inline.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/ColorPicker/Images/Mode/Palette.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/ColorPicker/Images/Overview/Spectrum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion MAUI/ColorPicker/Localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To localize the `Color Picker` based on `CurrentUICulture` using `resource` file

1. Right-click on the `Resources` folder, select `Add`, and then `NewItem`.

2. In the Add New Item wizard, select the Resource File option and name the file as `SfColorPicker.<culture name>.resx.` For example, name it `SfColorPicker.fr-FR.resx` for the French culture.
2. In the `Add New Item` wizard, select the `Resources File` option and name the file as `SfColorPicker.<culture name>.resx.` For example, name it `SfColorPicker.fr-FR.resx` for the French culture.

3. The culture name indicates the name of the language and country.

Expand Down
2 changes: 1 addition & 1 deletion MAUI/Themes/Keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -3473,7 +3473,7 @@ This page lists the keys associated with each control and the respective UI elem
</tr>

<tr>
<td rowspan="16">
<td rowspan="23">
SfColorPickerStyles
<br/>
<br/>
Expand Down