Class SillOrientedGrid
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
A specialized Grid control that dynamically arranges its children in either rows or columns based on the WindowSill bar's location on the screen. When the sill is positioned horizontally (top/bottom), children are arranged in columns. When positioned vertically (left/right), children are arranged in rows.
public sealed class SillOrientedGrid : Grid, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Panel>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Grid>
- Inheritance
-
SillOrientedGrid
- Implements
-
IWinRTObject
- Inherited Members
- Extension Methods
Constructors
SillOrientedGrid()
Initializes a new instance of the SillOrientedGrid class.
public SillOrientedGrid()
Fields
GridLengthsProperty
Identifies the GridLengths dependency property.
public static readonly DependencyProperty GridLengthsProperty
Field Value
Properties
GridLengths
Gets or sets the collection of grid length specifications that define the size and constraints for each column (horizontal orientation) or row (vertical orientation). The number of grid lengths must match the number of child elements.
public IList<SillGridLength>? GridLengths { get; set; }
Property Value
Methods
MeasureOverride(Size)
Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSizeSizeThe available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Returns
- Size
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects or based on other considerations such as a fixed container size.
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected override void OnApplyTemplate()