In This Article

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 class.

public HueRing()

Properties

Length

The length of the ring.

public double Length { get; set; }

Property Value

double:

The default value is 40.0.

Methods

ArrangeOverride(Size)

Called to arrange and size the content of a Control object.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

Returns

Size:

The size of the control.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

LengthProperty

Defines the Length property.

public static readonly DependencyProperty LengthProperty

Extension Methods