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="") 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"
            <ColumnDefinition Width="250"/>
        <Border Background="{Binding ElementName=CB, Path=Brush}"/>
        <ncore:ColorBox x:Name="CB" Grid.Column="1" Margin="10,0,0,0" VerticalAlignment="Top"/>

Last edited Oct 5, 2014 at 4:55 AM by ncoresoft, version 8