This project is read-only.

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

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