RadialHuePicker Class
Represents a radial color hue picker control.
[TemplatePart(Name = "PART_HueRing", Type = typeof(HueRing))]
[TemplatePart(Name = "PART_Slider", Type = typeof(RadialSlider))]
public class RadialHuePicker : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ContentControl Object
Constructors
RadialHuePicker()
Initializes an instance of the RadialHuePicker
class.
public RadialHuePicker()
Properties
Hue
Gets or sets the color hue.
public double Hue { get; set; }
Property Value
- System.Double:
The color hue. The default value is
0.0
.
Radius
Gets or sets the ring's outer radius.
public double Radius { get; set; }
Property Value
- System.Double:
The ring's outer radius. The default value is
130.0
.
SliderRadius
Gets the slider's radius.
public double SliderRadius { get; }
Property Value
- System.Double:
The slider's radius.
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
HueChanged
Occurs after the Hue property value changes.
public event EventHandler HueChanged
Event Type
- System.EventHandler
Fields
HueProperty
Identifies the Hue dependency property. This field is read-only.
public static readonly DependencyProperty HueProperty
RadiusProperty
Identifies the Radius dependency property. This field is read-only.
public static readonly DependencyProperty RadiusProperty
SliderRadiusProperty
Identifies the SliderRadius dependency property. This field is read-only.
public static readonly DependencyProperty SliderRadiusProperty
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()