C# Class MenuKiller.CircularPanel

Assumptions: o The child elements are on a circle. The children will be centered respective to a point they provide (MenuKillerItems), otherwise to their center. o There is a multitude of options on how the panel is supposed to behave, but within the arrange and measure methods, this information is compressed into very few variables.
Inheritance: System.Windows.Controls.Panel, ICustomAlignedControl
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Свойство Type Description
AngleSpacingProperty System.Windows.DependencyProperty
EndAngleProperty System.Windows.DependencyProperty
RadiusProperty System.Windows.DependencyProperty
StartAngleProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
GetChildOffset System.Windows.Vector

Méthodes publiques

Méthode Description
CircularPanel ( ) : System
RecalcParams ( ) : void
UpdateRenderAngleSpacing ( ) : void

Updates the RenderAngleSpacing and handles the 'Auto' case when AngleSpacing is NaN.

Méthodes protégées

Méthode Description
ArrangeOverride ( Size finalSize ) : Size
MeasureOverride ( Size availableSize ) : Size
OnRender ( System.Windows.Media.DrawingContext dc ) : void

Private Methods

Méthode Description
GetChildOffset ( UIElement child, double dAngle ) : System.Windows.Vector

Method Details

ArrangeOverride() protected méthode

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Résultat System.Windows.Size

CircularPanel() public méthode

public CircularPanel ( ) : System
Résultat System

MeasureOverride() protected méthode

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
Résultat System.Windows.Size

OnRender() protected méthode

protected OnRender ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
Résultat void

RecalcParams() public méthode

public RecalcParams ( ) : void
Résultat void

UpdateRenderAngleSpacing() public méthode

Updates the RenderAngleSpacing and handles the 'Auto' case when AngleSpacing is NaN.
public UpdateRenderAngleSpacing ( ) : void
Résultat void

Property Details

AngleSpacingProperty public_oe static_oe property

public static DependencyProperty,System.Windows AngleSpacingProperty
Résultat System.Windows.DependencyProperty

EndAngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows EndAngleProperty
Résultat System.Windows.DependencyProperty

RadiusProperty public_oe static_oe property

public static DependencyProperty,System.Windows RadiusProperty
Résultat System.Windows.DependencyProperty

StartAngleProperty public_oe static_oe property

public static DependencyProperty,System.Windows StartAngleProperty
Résultat System.Windows.DependencyProperty