Class
RotatedContainer

Represents a container control that can rotate its child content and apply the rotation transformation to its desired size.

Definition

Constructors

RotatedContainer()

Initializes a new instance of the RotatedContainer class.

Declaration

cs-api-definition
public RotatedContainer()

Fields

ChildProperty

Identifies the Child dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ChildProperty

Field Value

DependencyProperty

RotationAngleProperty

Identifies the RotationAngle property.

Declaration

cs-api-definition
public static readonly DependencyProperty RotationAngleProperty

Field Value

DependencyProperty

Properties

Child

Gets or sets the UIElement instance that is parented by this container.

Declaration

cs-api-definition
public UIElement Child { get; set; }

Property Value

UIElement

RotationAngle

Gets or sets the angle to rotate the Child by.

Declaration

cs-api-definition
public double RotationAngle { get; set; }

Property Value

double

Methods

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The final area within the parent that this object should use to arrange itself and its children.

Returns

Size

The actual size that is used after the element is arranged in layout.

Overrides RadControl.ArrangeOverride(Size)

MeasureOverride(Size)

Called in the measure layout pass to determine the desired size.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The available size that was given by the layout system.

Returns

Size

Overrides RadControl.MeasureOverride(Size)

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadControl.OnCreateAutomationPeer()

OnTemplateApplied()

Occurs when the method has been called and the template is already successfully applied.

Declaration

cs-api-definition
protected override void OnTemplateApplied()

Overrides RadControl.OnTemplateApplied()