HueRing Class
Represents a ring that renders color hues.
[TemplatePart(Name = "PART_Presenter", Type = typeof(Canvas))]
public class HueRing : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
HueRing()
Initializes an instance of the HueRing
class.
public HueRing()
Properties
Length
Gets or sets the length of the ring.
public double Length { get; set; }
Property Value
- double:
The length of the ring. The default value is
40.0
.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
Fields
LengthProperty
Identifies the Length dependency property. This field is read-only.
public static readonly DependencyProperty LengthProperty