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
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Méthodes publiques

Свойство Type Description
ActualLengthProperty DependencyProperty
ActualMinimumDistanceBetweenChildrenProperty DependencyProperty
CenterCoordinateProperty DependencyProperty
IsInvertedProperty DependencyProperty
IsReversedProperty DependencyProperty
MinimumDistanceBetweenChildrenProperty DependencyProperty
OffsetPaddingProperty DependencyProperty
OrientationProperty DependencyProperty
PriorityProperty DependencyProperty

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

OnCenterCoordinatePropertyChanged() public static méthode

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

OnIsInvertedPropertyChanged() protected méthode

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

OnIsReversedPropertyChanged() protected méthode

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

OnMinimumDistanceBetweenChildrenPropertyChanged() protected méthode

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

OnOffsetPaddingPropertyChanged() protected méthode

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

OnOrientationPropertyChanged() protected méthode

OrientationProperty property changed handler.
protected OnOrientationPropertyChanged ( Orientation newValue ) : void
newValue Orientation New value.
Résultat void

OnPriorityPropertyChanged() public static méthode

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

OrientedPanel() public méthode

Instantiates a new instance of the OrientedPanel class.
public OrientedPanel ( ) : System
Résultat System

Property Details

ActualLengthProperty public_oe static_oe property

Identifies the ActualLength dependency property.
public static DependencyProperty ActualLengthProperty
Résultat DependencyProperty

ActualMinimumDistanceBetweenChildrenProperty public_oe static_oe property

Identifies the ActualMinimumDistanceBetweenChildren dependency property.
public static DependencyProperty ActualMinimumDistanceBetweenChildrenProperty
Résultat DependencyProperty

CenterCoordinateProperty public_oe static_oe property

Identifies the CenterCoordinate dependency property.
public static DependencyProperty CenterCoordinateProperty
Résultat DependencyProperty

IsInvertedProperty public_oe static_oe property

Identifies the IsInverted dependency property.
public static DependencyProperty IsInvertedProperty
Résultat DependencyProperty

IsReversedProperty public_oe static_oe property

Identifies the IsReversed dependency property.
public static DependencyProperty IsReversedProperty
Résultat DependencyProperty

MinimumDistanceBetweenChildrenProperty public_oe static_oe property

Identifies the MinimumDistanceBetweenChildren dependency property.
public static DependencyProperty MinimumDistanceBetweenChildrenProperty
Résultat DependencyProperty

OffsetPaddingProperty public_oe static_oe property

Identifies the OffsetPadding dependency property.
public static DependencyProperty OffsetPaddingProperty
Résultat DependencyProperty

OrientationProperty public_oe static_oe property

Identifies the Orientation dependency property.
public static DependencyProperty OrientationProperty
Résultat DependencyProperty

PriorityProperty public_oe static_oe property

Identifies the Priority dependency property.
public static DependencyProperty PriorityProperty
Résultat DependencyProperty