C# Класс ComponentFactory.Quicksilver.Layout.CanvasLayout

Arranges child elements in fixed positions as provided by Canvas attached properties.
Наследование: Layout
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
BottomProperty System.Windows.DependencyProperty
LeftProperty System.Windows.DependencyProperty
RightProperty System.Windows.DependencyProperty
TopProperty System.Windows.DependencyProperty

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

Метод Описание
MeasureChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size availableSize ) : Size

Measure the layout size required to arrange all elements.

SetBottom ( UIElement element, double length ) : void

Sets the Bottom attached property of the provided element.

SetLeft ( UIElement element, double value ) : void

Sets the Left attached property of the provided element.

SetRight ( UIElement element, double value ) : void

Sets the Right attached property of the provided element.

SetTop ( UIElement element, double length ) : void

Sets the Top attached property of the provided element.

TargetChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size finalSize ) : void

Calculate target state for each element based on layout algorithm.

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

Метод Описание
CanvasLayout ( ) : System
GetBottom ( UIElement element ) : double
GetLeft ( UIElement element ) : double
GetRight ( UIElement element ) : double
GetTop ( UIElement element ) : double
OnCanvasChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

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

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

Measure the layout size required to arrange all elements.
public MeasureChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size availableSize ) : Size
layoutId string Identifier of the layout to be used.
metaPanel MetaPanelBase Reference to owning panel instance.
stateDict MetaElementStateDict Dictionary of per-element state.
elements ICollection Collection of elements to be measured.
availableSize System.Windows.Size Available size that can be given to elements.
Результат System.Windows.Size

SetBottom() публичный статический Метод

Sets the Bottom attached property of the provided element.
public static SetBottom ( UIElement element, double length ) : void
element UIElement Target element.
length double Bottom value.
Результат void

SetLeft() публичный статический Метод

Sets the Left attached property of the provided element.
public static SetLeft ( UIElement element, double value ) : void
element UIElement Target element.
value double Left value.
Результат void

SetRight() публичный статический Метод

Sets the Right attached property of the provided element.
public static SetRight ( UIElement element, double value ) : void
element UIElement Target element.
value double Right value.
Результат void

SetTop() публичный статический Метод

Sets the Top attached property of the provided element.
public static SetTop ( UIElement element, double length ) : void
element UIElement Target element.
length double Top value.
Результат void

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

Calculate target state for each element based on layout algorithm.
public TargetChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size finalSize ) : void
layoutId string Identifier of the layout to be used.
metaPanel MetaPanelBase Reference to owning panel instance.
stateDict MetaElementStateDict Dictionary of per-element state.
elements ICollection Collection of elements to be arranged.
finalSize System.Windows.Size Size that layout should use to arrange child elements.
Результат void

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

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

Identifies the Bottom dependency property.
public static DependencyProperty,System.Windows BottomProperty
Результат System.Windows.DependencyProperty

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

Identifies the Left dependency property.
public static DependencyProperty,System.Windows LeftProperty
Результат System.Windows.DependencyProperty

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

Identifies the Right dependency property.
public static DependencyProperty,System.Windows RightProperty
Результат System.Windows.DependencyProperty

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

Identifies the Top dependency property.
public static DependencyProperty,System.Windows TopProperty
Результат System.Windows.DependencyProperty