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

Arranges child elements in a flexible grid area that consists of columns and rows.
Наследование: Layout
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
ColumnProperty System.Windows.DependencyProperty
ColumnSpanProperty System.Windows.DependencyProperty
RowProperty System.Windows.DependencyProperty
RowSpanProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
BuildProxyColumns void
BuildProxyRows void
CalculateDesiredSize System.Windows.Size
CalculateOffsetsAndTotals void
CalculateOffsetsAndTotals void
GetColumn int
GetColumnSpan int
GetRow int
GetRowSpan int
MeasureElements void
OnAttachedPropertyChanged void
PreMeasure double
PreMeasure void
PreTarget void
PreTargetStarDefinitions void
TargetArrangeSize System.Windows.Rect
UpdateDefinitions void

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

Метод Описание
AddToLogicalTree ( ILogicalParent parent ) : void

Add this element into the logical tree.

GridLayout ( ) : System

Initialize a new instance of the GridLayout class.

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

Measure the layout size required to arrange all elements.

RemoveFromLogicalTree ( ILogicalParent parent ) : void

Add this element from the logial tree.

SetColumn ( UIElement element, int column ) : void

Sets the value of the Column attached property to a specified element.

SetColumnSpan ( UIElement element, int columnSpan ) : void

Sets the value of the ColumnSpan attached property to a specified element.

SetRow ( UIElement element, int row ) : void

Sets the value of the Row attached property to a specified element.

SetRowSpan ( UIElement element, int rowSpan ) : void

Sets the value of the RowSpan attached property to a specified element.

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

Calculate target state for each element based on layout algorithm.

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

Метод Описание
BuildProxyColumns ( ) : void
BuildProxyRows ( ) : void
CalculateDesiredSize ( MetaElementStateDict stateDict, ICollection elements, Size availableSize ) : Size
CalculateOffsetsAndTotals ( ) : void
CalculateOffsetsAndTotals ( DefinitionProxy proxies ) : void
GetColumn ( UIElement element ) : int
GetColumnSpan ( UIElement element ) : int
GetRow ( UIElement element ) : int
GetRowSpan ( UIElement element ) : int
MeasureElements ( MetaElementStateDict stateDict, ICollection elements ) : void
OnAttachedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PreMeasure ( double size, DefinitionProxy proxies ) : double
PreMeasure ( Size availableSize ) : void
PreTarget ( Size availableSize ) : void
PreTargetStarDefinitions ( double size, DefinitionProxy proxies, double stars ) : void
TargetArrangeSize ( UIElement element ) : Rect
UpdateDefinitions ( MetaElementStateDict stateDict, ICollection elements, bool spanning ) : void

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

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

Add this element into the logical tree.
public AddToLogicalTree ( ILogicalParent parent ) : void
parent ILogicalParent Interface of logical parent.
Результат void

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

Initialize a new instance of the GridLayout class.
public GridLayout ( ) : System
Результат System

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

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

Add this element from the logial tree.
public RemoveFromLogicalTree ( ILogicalParent parent ) : void
parent ILogicalParent Interface of logical parent.
Результат void

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

Sets the value of the Column attached property to a specified element.
public static SetColumn ( UIElement element, int column ) : void
element UIElement The element to which the attached property is written.
column int The new column value.
Результат void

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

Sets the value of the ColumnSpan attached property to a specified element.
public static SetColumnSpan ( UIElement element, int columnSpan ) : void
element UIElement The element to which the attached property is written.
columnSpan int The new ColumnSpan value.
Результат void

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

Sets the value of the Row attached property to a specified element.
public static SetRow ( UIElement element, int row ) : void
element UIElement The element to which the attached property is written.
row int The new row value.
Результат void

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

Sets the value of the RowSpan attached property to a specified element.
public static SetRowSpan ( UIElement element, int rowSpan ) : void
element UIElement The element to which the attached property is written.
rowSpan int The new RowSpan 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

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

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

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

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

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

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

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

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

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