C# Class WinRTXamlToolkit.Controls.DataVisualization.Charting.OrientedPanel

A panel that plots elements on a one dimensional plane. In order to minimize collisions it moves elements further and further from the edge of the plane based on their priority. Elements that have the same priority level are always the same distance from the edge.
Inheritance: Windows.UI.Xaml.Controls.Panel
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
ActualLengthProperty DependencyProperty
ActualMinimumDistanceBetweenChildrenProperty DependencyProperty
CenterCoordinateProperty DependencyProperty
IsInvertedProperty DependencyProperty
IsReversedProperty DependencyProperty
MinimumDistanceBetweenChildrenProperty DependencyProperty
OffsetPaddingProperty DependencyProperty
OrientationProperty DependencyProperty
PriorityProperty DependencyProperty

Private Properties

Property Type Description
GetCenterCoordinate double
GetCorrectedDesiredSize Size
GetMinimumDistanceBetweenItems double
GetPriority int
GetRanges IEnumerable>
MeasureOverride Size
OnIsInvertedPropertyChanged void
OnIsReversedPropertyChanged void
OnMinimumDistanceBetweenChildrenPropertyChanged void
OnOffsetPaddingPropertyChanged void
OnOrientationPropertyChanged void
SetCenterCoordinate void
SetPriority void
UpdateActualLength void

Public Methods

Method Description
OnCenterCoordinatePropertyChanged ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs ) : void

CenterCoordinateProperty property changed handler.

OnPriorityPropertyChanged ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs ) : void

PriorityProperty property changed handler.

OrientedPanel ( ) : System

Instantiates a new instance of the OrientedPanel class.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Arranges items according to position and priority.

OnIsInvertedPropertyChanged ( bool oldValue, bool newValue ) : void

IsInvertedProperty property changed handler.

OnIsReversedPropertyChanged ( bool oldValue, bool newValue ) : void

IsReversedProperty property changed handler.

OnMinimumDistanceBetweenChildrenPropertyChanged ( double oldValue, double newValue ) : void

MinimumDistanceBetweenChildrenProperty property changed handler.

OnOffsetPaddingPropertyChanged ( double oldValue, double newValue ) : void

OffsetPaddingProperty property changed handler.

OnOrientationPropertyChanged ( Orientation newValue ) : void

OrientationProperty property changed handler.

Private Methods

Method Description
GetCenterCoordinate ( UIElement element ) : double
GetCorrectedDesiredSize ( UIElement element ) : Size

Gets the "corrected" DesiredSize (for Line instances); one that is more consistent with how the elements actually render.

GetMinimumDistanceBetweenItems ( IList orderedElements, double>.Func lengthSelector ) : double

Gets the minimum distance between the given elements.

GetPriority ( UIElement element ) : int
GetRanges ( IEnumerable children, double>.Func lengthSelector ) : IEnumerable>

Returns a sequence of ranges for a given sequence of children and a length selector.

MeasureOverride ( Size availableSize ) : Size
OnIsInvertedPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IsInvertedProperty property changed handler.

OnIsReversedPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IsReversedProperty property changed handler.

OnMinimumDistanceBetweenChildrenPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

MinimumDistanceBetweenChildrenProperty property changed handler.

OnOffsetPaddingPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

OffsetPaddingProperty property changed handler.

OnOrientationPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

OrientationProperty property changed handler.

SetCenterCoordinate ( UIElement element, double value ) : void
SetPriority ( UIElement element, int value ) : void
UpdateActualLength ( ) : void

Updates the actual length property.

Method Details

ArrangeOverride() protected method

Arranges items according to position and priority.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size The final size of the panel.
return Size

OnCenterCoordinatePropertyChanged() public static method

CenterCoordinateProperty property changed handler.
public static OnCenterCoordinatePropertyChanged ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs ) : void
dependencyObject DependencyObject UIElement that changed its CenterCoordinate.
eventArgs DependencyPropertyChangedEventArgs Event arguments.
return void

OnIsInvertedPropertyChanged() protected method

IsInvertedProperty property changed handler.
protected OnIsInvertedPropertyChanged ( bool oldValue, bool newValue ) : void
oldValue bool Old value.
newValue bool New value.
return void

OnIsReversedPropertyChanged() protected method

IsReversedProperty property changed handler.
protected OnIsReversedPropertyChanged ( bool oldValue, bool newValue ) : void
oldValue bool Old value.
newValue bool New value.
return void

OnMinimumDistanceBetweenChildrenPropertyChanged() protected method

MinimumDistanceBetweenChildrenProperty property changed handler.
protected OnMinimumDistanceBetweenChildrenPropertyChanged ( double oldValue, double newValue ) : void
oldValue double Old value.
newValue double New value.
return void

OnOffsetPaddingPropertyChanged() protected method

OffsetPaddingProperty property changed handler.
protected OnOffsetPaddingPropertyChanged ( double oldValue, double newValue ) : void
oldValue double Old value.
newValue double New value.
return void

OnOrientationPropertyChanged() protected method

OrientationProperty property changed handler.
protected OnOrientationPropertyChanged ( Orientation newValue ) : void
newValue Orientation New value.
return void

OnPriorityPropertyChanged() public static method

PriorityProperty property changed handler.
public static OnPriorityPropertyChanged ( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs ) : void
dependencyObject DependencyObject UIElement that changed its Priority.
eventArgs DependencyPropertyChangedEventArgs Event arguments.
return void

OrientedPanel() public method

Instantiates a new instance of the OrientedPanel class.
public OrientedPanel ( ) : System
return System

Property Details

ActualLengthProperty public_oe static_oe property

Identifies the ActualLength dependency property.
public static DependencyProperty ActualLengthProperty
return DependencyProperty

ActualMinimumDistanceBetweenChildrenProperty public_oe static_oe property

Identifies the ActualMinimumDistanceBetweenChildren dependency property.
public static DependencyProperty ActualMinimumDistanceBetweenChildrenProperty
return DependencyProperty

CenterCoordinateProperty public_oe static_oe property

Identifies the CenterCoordinate dependency property.
public static DependencyProperty CenterCoordinateProperty
return DependencyProperty

IsInvertedProperty public_oe static_oe property

Identifies the IsInverted dependency property.
public static DependencyProperty IsInvertedProperty
return DependencyProperty

IsReversedProperty public_oe static_oe property

Identifies the IsReversed dependency property.
public static DependencyProperty IsReversedProperty
return DependencyProperty

MinimumDistanceBetweenChildrenProperty public_oe static_oe property

Identifies the MinimumDistanceBetweenChildren dependency property.
public static DependencyProperty MinimumDistanceBetweenChildrenProperty
return DependencyProperty

OffsetPaddingProperty public_oe static_oe property

Identifies the OffsetPadding dependency property.
public static DependencyProperty OffsetPaddingProperty
return DependencyProperty

OrientationProperty public_oe static_oe property

Identifies the Orientation dependency property.
public static DependencyProperty OrientationProperty
return DependencyProperty

PriorityProperty public_oe static_oe property

Identifies the Priority dependency property.
public static DependencyProperty PriorityProperty
return DependencyProperty