EllipsePanel ClassDW.WPFToolkit Documentation
Arranges child elements in a configurable ellipse form.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsPanel
              DW.WPFToolkit.ControlsEllipsePanel

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class EllipsePanel : Panel

The EllipsePanel type exposes the following members.

Constructors

  NameDescription
Public methodEllipsePanel
Initializes a new instance of the EllipsePanel class
Top
Methods

  NameDescription
Protected methodArrangeOverride
Positionates each child in an ellipse form depending on the amount of child controls.
(Overrides FrameworkElementArrangeOverride(Size).)
Protected methodMeasureOverride
Lets each child calculating is needed size.
(Overrides FrameworkElementMeasureOverride(Size).)
Top
Fields

  NameDescription
Public fieldStatic memberElementsRotateDirectionProperty
Identifies the ElementsRotateDirection dependency property.
Public fieldStatic memberElementStartPositionProperty
Identifies the ElementStartPosition dependency property.
Public fieldStatic memberEllipseRotateDirectionProperty
Identifies the EllipseRotateDirection dependency property.
Public fieldStatic memberRotateElementsProperty
Identifies the RotateElements dependency property.
Top
Properties

  NameDescription
Public propertyElementsRotateDirection
Gets or sets the rotating direction of the child elements if RotateElements is set to true.
Public propertyElementStartPosition
Gets or sets where the first child element has to start in the ellipse.
Public propertyEllipseRotateDirection
Gets or sets the direction where the child elements in the ellipse should be alligned.
Public propertyRotateElements
Gets or sets if the child elements has to be rotated.
Top
Examples

XAML
<ItemsControl ItemsSource="{Binding Player}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <WPFToolkit:EllipsePanel ElementStartPosition="Bottom"
                                     EllipseRotateDirection="Clockwise"
                                     ElementsRotateDirection="Outroversive"
                                     RotateElements="True" />
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
</ItemsControl>

<WPFToolkit:EllipsePanel>
    <Button Content="One" />
    <Button Content="Two" />
    <Button Content="Three" />
    <Button Content="Four" />
</WPFToolkit:EllipsePanel>
See Also

Reference