Mode and Value in .NET MAUI Color Picker (SfColorPicker)

26 Jun 20251 minute to read

Rendering palette at initial load

To display the Color Picker in palette mode, I set its ColorMode property to Palette. By default, it is configured as Spectrum.

<inputs:SfColorPicker ColorMode="Palette"/>
SfColorPicker colorPicker = new SfColorPicker()
{
    ColorMode = ColorPickerMode.Palette
};

Palette

Switch color mode visibility

Disable the mode switcher UI by setting the IsColorModeSwitcherVisible property to False. By default, it is set to True, which allows users to switch between different color modes.

<inputs:SfColorPicker ColorMode="Palette" IsColorModeSwitcherVisible="False"/>
SfColorPicker colorPicker = new SfColorPicker()
{
    ColorMode = ColorPickerMode.Palette,
    IsColorModeSwitcherVisible = false
};

Color mode