C# Класс Yuhan.WPF.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.
Наследование: System.Windows.Controls.Panel, ICustomAlignedControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AngleSpacingProperty System.Windows.DependencyProperty
EndAngleProperty System.Windows.DependencyProperty
RadiusProperty System.Windows.DependencyProperty
StartAngleProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
GetChildOffset System.Windows.Vector
RecalcParams void
UpdateRenderAngleSpacing void

Открытые методы

Метод Описание
CircularPanel ( ) : System

Защищенные методы

Метод Описание
ArrangeOverride ( Size finalSize ) : Size
MeasureOverride ( Size availableSize ) : Size
OnRender ( System.Windows.Media.DrawingContext dc ) : void

Приватные методы

Метод Описание
GetChildOffset ( UIElement child, double dAngle ) : System.Windows.Vector
RecalcParams ( ) : void
UpdateRenderAngleSpacing ( ) : void

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

Описание методов

ArrangeOverride() защищенный Метод

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Результат System.Windows.Size

CircularPanel() публичный Метод

public CircularPanel ( ) : System
Результат System

MeasureOverride() защищенный Метод

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
Результат System.Windows.Size

OnRender() защищенный Метод

protected OnRender ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
Результат void

Описание свойств

AngleSpacingProperty публичное статическое свойство

public static DependencyProperty,System.Windows AngleSpacingProperty
Результат System.Windows.DependencyProperty

EndAngleProperty публичное статическое свойство

public static DependencyProperty,System.Windows EndAngleProperty
Результат System.Windows.DependencyProperty

RadiusProperty публичное статическое свойство

public static DependencyProperty,System.Windows RadiusProperty
Результат System.Windows.DependencyProperty

StartAngleProperty публичное статическое свойство

public static DependencyProperty,System.Windows StartAngleProperty
Результат System.Windows.DependencyProperty