Skip to content
| Marketplace
Sign in
Visual Studio>Controls>ColorBox (WPF Gradient Color Picker)
ColorBox (WPF Gradient Color Picker)

ColorBox (WPF Gradient Color Picker)

Nitesh C

|
2,147 clicks
| (0) | Free Trial
This tool/control lets you create solid, linear gradient and radial gradient brushes in a WPF application.
Get Started

Installation

  1. Install .NET Framework 4.0.
    • Please note: The ColorBox control dependent on .NET Framework 4.0. So you must install .NET Framework 4.0 in order to use it.
  2. Download the ColorBox 1.1 binary
  3. Reference ColorBox.dll in your project
    1. Add a using statement (using ColorBox;) to the top of .cs files
    2. Add a new xmlns (xmlns:ncore="http://schemas.ncore.com/wpf/xaml/colorbox") to the top of XAML files
    3. Use the namespace prefix (in the above example, <ncore: ...>) in the body of your XAML

Usage (XAML)

<Window x:Class="ColorBoxDemo.DemoWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:ncore="http://schemas.ncore.com/wpf/xaml/colorbox">    <Grid>        <Grid.ColumnDefinitions>            <ColumnDefinition/>            <ColumnDefinition/>        </Grid.ColumnDefinitions>        <Border Background="{Binding ElementName=CB, Path=Brush}" Grid.Column="0"/>        <ncore:ColorBox x:Name="CB" Grid.Column="1"/>    </Grid></Window>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft