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

Positions elements in sequential order from left to right and line break when reaching the far edge.
Наследование: Layout
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
BreakAfterProperty System.Windows.DependencyProperty
ItemHeightProperty System.Windows.DependencyProperty
ItemWidthProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty

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

Метод Описание
GetBreakAfter ( UIElement element ) : bool

Gets the BreakAfter attached property of the provided element.

MeasureChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size availableSize ) : Size

Measure the layout size required to arrange all elements.

SetBreakAfter ( UIElement element, bool value ) : void

Sets the BreakAfter 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.

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

Метод Описание
OnWrapChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TargetLine ( MetaElementStateDict stateDict, List targets, double positionOffset, double lineMax, bool itemWidthDefined, bool itemHeightDefined, double itemWidth, double itemHeight, Size finalSize, Orientation orientation ) : void
WrapLayout ( ) : System

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

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

Gets the BreakAfter attached property of the provided element.
public static GetBreakAfter ( UIElement element ) : bool
element UIElement Target element.
Результат bool

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

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

Sets the BreakAfter attached property of the provided element.
public static SetBreakAfter ( UIElement element, bool value ) : void
element UIElement Target element.
value bool BreakAfter 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

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

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

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

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

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

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

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

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

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