The C1ColorPicker control allows end-users to pick a color from a color palette or use the color editor to build advanced colors using the RGB or HSL color models. The C1ColorPicker control keeps a list of the recently used colors.
Namespace:
C1.Silverlight.ExtendedAssembly: C1.Silverlight.Extended (in C1.Silverlight.Extended.dll)
Syntax
C# |
---|
[StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] [TemplatePartAttribute(Name = "DropDown", Type = typeof(C1DropDownButton))] [TemplatePartAttribute(Name = "BasicTab", Type = typeof(C1TabItem))] [TemplatePartAttribute(Name = "AdvancedTab", Type = typeof(C1TabItem))] [TemplatePartAttribute(Name = "Tabs", Type = typeof(C1TabControl))] [TemplatePartAttribute(Name = "Basic", Type = typeof(C1BasicColorPickerPart))] [TemplatePartAttribute(Name = "Advanced", Type = typeof(C1AdvancedColorPickerPart))] [TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [StyleTypedPropertyAttribute(Property = "ColorContainerStyle", StyleTargetType = typeof(ItemsControl))] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")] [TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")] public class C1ColorPicker : Control |
Visual Basic |
---|
<StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ <TemplatePartAttribute(Name := "DropDown", Type := GetType(C1DropDownButton))> _ <TemplatePartAttribute(Name := "BasicTab", Type := GetType(C1TabItem))> _ <TemplatePartAttribute(Name := "AdvancedTab", Type := GetType(C1TabItem))> _ <TemplatePartAttribute(Name := "Tabs", Type := GetType(C1TabControl))> _ <TemplatePartAttribute(Name := "Basic", Type := GetType(C1BasicColorPickerPart))> _ <TemplatePartAttribute(Name := "Advanced", Type := GetType(C1AdvancedColorPickerPart))> _ <TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <StyleTypedPropertyAttribute(Property := "ColorContainerStyle", StyleTargetType := GetType(ItemsControl))> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _ <TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _ Public Class C1ColorPicker _ Inherits Control |
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Extended..::..C1ColorPicker
C1.Silverlight.Extended.PropertyGrid..::..BrushEditor
C1.Silverlight.Extended.PropertyGrid..::..ColorEditor
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Extended..::..C1ColorPicker
C1.Silverlight.Extended.PropertyGrid..::..BrushEditor
C1.Silverlight.Extended.PropertyGrid..::..ColorEditor