Customizing Selected Color Appearance In The MAUI Color Picker

Updated on Jul 24, 2025
color-palette color-picker colorpicker-customize maui-color-palette maui-color-picker

This article demonstrates how to customize the selected color appearance in the MAUI Color Picker control.

Sample

    <inputs:SfColorPicker x:Name="colorPicker">
        <inputs:SfColorPicker.SelectedColorTemplate>
            <DataTemplate>
                <VerticalStackLayout WidthRequest="60" Background="White" Spacing="-4">
                    <Label Text="A" FontSize="20" FontAttributes="Bold" HorizontalOptions="Center" TextColor="Black"/>
                    <BoxView HeightRequest="5" WidthRequest="30" Background="{Binding Source={x:Reference colorPicker},Path=SelectedColor}" />
                </VerticalStackLayout>
            </DataTemplate>
        </inputs:SfColorPicker.SelectedColorTemplate>
    </inputs:SfColorPicker>

Requirements to run the demo

To run the demo, refer to System Requirements for .NET MAUI

Troubleshooting:

Path too long exception

If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.

License

Syncfusion has no liability for any damage or consequence that may arise from using or viewing the samples. The samples are for demonstrative purposes. If you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion's samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion's samples