SaturationBrightnessPicker Class
Represents a saturation/brightness picker control.
[TemplatePart(Name = "PART_Thumb", Type = typeof(CircularThumb))]
public class SaturationBrightnessPicker : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control Object
Constructors
SaturationBrightnessPicker()
Initializes an instance of the SaturationBrightnessPicker
class.
public SaturationBrightnessPicker()
Properties
Brightness
Gets or sets the color brightness.
public double Brightness { get; set; }
Property Value
- System.Double:
The color brightness.
Hue
Gets or sets the color hue.
public double Hue { get; set; }
Property Value
- System.Double:
The color hue.
Saturation
Gets or sets the color saturation.
public double Saturation { get; set; }
Property Value
- System.Double:
The color saturation.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns an System.Windows.Automation.Peers.AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- System.Windows.Automation.Peers.AutomationPeer:
An System.Windows.Automation.Peers.AutomationPeer instance.
Events
BrightnessChanged
Occurs after the Brightness property value changes.
public event EventHandler BrightnessChanged
Event Type
- System.EventHandler
SaturationChanged
Occurs after the Saturation property value changes.
public event EventHandler SaturationChanged
Event Type
- System.EventHandler
Fields
BrightnessProperty
Identifies the Brightness dependency property. This field is read-only.
public static readonly DependencyProperty BrightnessProperty
HueProperty
Identifies the Hue dependency property. This field is read-only.
public static readonly DependencyProperty HueProperty
SaturationProperty
Identifies the Saturation dependency property. This field is read-only.
public static readonly DependencyProperty SaturationProperty
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()