C# Class ComponentFactory.Quicksilver.Layout.Layout

Base class that all layout implementations derive from.
Inheritance: MeasureElement
Afficher le fichier Open project: ComponentFactory/Quicksilver

Méthodes publiques

Свойство Type Description
IdProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
ArrangeChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size finalSize ) : Size

Position child elements according to already calculated target state.

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

Measure the layout size required to arrange all elements.

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

Calculate target state for each element based on layout algorithm.

Private Methods

Méthode Description
Layout ( ) : System

Method Details

ArrangeChildren() public méthode

Position child elements according to already calculated target state.
public ArrangeChildren ( string layoutId, MetaPanelBase metaPanel, MetaElementStateDict stateDict, ICollection elements, Size finalSize ) : 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 arranged.
finalSize System.Windows.Size Size that layout should use to arrange child elements.
Résultat System.Windows.Size

MeasureChildren() public abstract méthode

Measure the layout size required to arrange all elements.
public abstract 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.
Résultat System.Windows.Size

TargetChildren() public abstract méthode

Calculate target state for each element based on layout algorithm.
public abstract 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.
Résultat void

Property Details

IdProperty public_oe static_oe property

Identifies the Id dependency property.
public static DependencyProperty,System.Windows IdProperty
Résultat System.Windows.DependencyProperty