UserControl for selecting a Color.
Shows the current selected Color as the swatch. Opens Max's native ColorPicker when clicked.
Public Member Functions |
|
ColorSwatch () | |
Constructor. |
|
Static Public Attributes |
|
static readonly DependencyProperty | ColorProperty |
The current selected Color. |
|
Properties |
|
Color |
Color [get, set] |
The current selected Color. |
WPFCustomControls::ColorSwatch::ColorSwatch | ( | ) | [inline] |
Constructor.
readonly DependencyProperty
WPFCustomControls::ColorSwatch::ColorProperty
[static] |
DependencyProperty.Register( "Color", typeof(Color), typeof(ColorSwatch), new FrameworkPropertyMetadata(Colors.White, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault) )
The current selected Color.
Color WPFCustomControls::ColorSwatch::Color
[get, set] |
The current selected Color.