Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    ColorPicker component

    This article demonstrates how to use the ColorPicker component.

    Get and set the value

    As all Radzen Blazor input components the ColorPicker has a Value property which gets and sets the value of the component. Use @bind-Value to get the user input.

    <RadzenColorPicker @bind-Value=@color Change=@OnChange />
    @code {
        string color = "rgb(68, 58, 110)";
    
        void OnChange(string value)
        {
            Console.WriteLine($"Value changed to {value}");
        }
    }
    

    Boost your Blazor development with Radzen

    Radzen is a desktop tool that gives you the power to create line of business applications. Build and launch Blazor apps visually, while we generate clean code for you.

    Learn More

    Download Radzen
    Download Radzen
    In This Article
    Back to top Radzen Blazor Components, © 2018-2022 Radzen. Source Code licensed under MIT