Class ColorBar
Represents the class for the color bar
Inheritance
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(ColorBar), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/ColorBar/Themes/Generic.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2007SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/Office2003Style.xaml")]
[SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/SyncOrange.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/ShinyRed.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(ColorBar), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ColorBar/Themes/ShinyBlue.xaml")]
public class ColorBar : Control
Constructors
ColorBar()
Initializes a new instance of the ColorBar class.
Declaration
public ColorBar()
Fields
ColorProperty
Identifies ColorBar. Color dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: Color |
Properties
Color
Gets or sets the value of the Color dependency property.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color | Type: Color |
Methods
OnApplyTemplate()
Called when an internal process or application calls ApplyTemplate, which is used to build the current template's visual tree.
Declaration
public override void OnApplyTemplate()
OnGotMouseCapture(MouseEventArgs)
Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class.
Declaration
protected override void OnGotMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The MouseEventArgs that contains the event data. |
OnLostMouseCapture(MouseEventArgs)
Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class.
Declaration
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The MouseEventArgs that contains the event data. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when MouseLeftButtonUp event is raised.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. |
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when PreviewMouseLeftButtonDown event is raised.
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. |
Events
ColorChanged
Event that is raised when Color property is changed.
Declaration
public event PropertyChangedCallback ColorChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SliderValueChanged
Event that is raised when SliderValueHSV property is changed.
Declaration
public event PropertyChangedCallback SliderValueChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |