This is continuation of my post yesterday about new color selection controls in DotNetBar for WPF.
ColorItemSelector Control
ColorItemSelector is a control that provides list of Office style colors available for selection. It is used by ColorInput control on its drop-down, but you can use it as standalone control too. Here is screenshot of ColorItemSelector control:
ColorItemSelector control key properties and events:
- SelectedColor – Indicates the selected color, may be null if there is no color selected.
- MoreColorsButtonVisibility – Indicates visibility of “More Colors…” button that opens the color selection dialog.
- SelectedColorChanged event, occurs when selected color has changed.
ColorComb control
ColorComb control is another color selection tool that displays colors in a comb pattern. Here is screenshot of the ColorComb control:
ColorComb control key properties and events:
- SelectedColor – Indicates the selected color, may be null if there is no color selected.
- SelectedColorChanged event, occurs when selected color has changed.
ColorBlender control
ColorBlender is color selection tool that displays color palette and allows selection using mouse. Here is screenshot of the ColorBlender control:
- SelectedColor – Indicates the selected color, may be null if there is no color selected.
- SelectedColorChanged event, occurs when selected color has changed.
ColorPickerButton control
ColorPickerButton control is design to be used on Ribbon and combined with ColorItemSelector. ColorPickerButton is contained in Ribbon assembly.
This is XAML code that you can use to setup ColorPickerButton:
<dc:ColorPickerButton>
<de:ColorItemSelector SelectedColor="{Binding Path=SelectedColor, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type dc:ColorPickerButton}}}" />
</dc:ColorPickerButton>
ColorPickerButton control key properties and events:
- SelectedColor – Indicates the selected color, may be null if there is no color selected.
- SelectedColorChanged event, occurs when selected color has changed.