Class UniformStackPanel
This stack panel evenly distributes available space among it's children.
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class UniformStackPanel : Panel, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IScrollInfo
Fields
View SourceCurrentItemLengthProperty
Identifies the CurrentItemLength dependency property.
Declaration
public static readonly DependencyProperty CurrentItemLengthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DesiredItemLengthProperty
Identifies the DesiredItemLength dependency property.
Declaration
public static readonly DependencyProperty DesiredItemLengthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemLengthProperty
Identifies the ItemLength dependency property.
Declaration
public static readonly DependencyProperty ItemLengthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ItemMarginProperty
Identifies the ItemMargin dependency property.
Declaration
public static readonly DependencyProperty ItemMarginProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinExtentLengthProperty
Identifies the MinExtentLength dependency property.
Declaration
public static readonly DependencyProperty MinExtentLengthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinItemLengthProperty
Identifies the MinItemLength dependency property.
Declaration
public static readonly DependencyProperty MinItemLengthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceCanHorizontallyScroll
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | true if scrolling is possible; otherwise, false. This property has no default value. |
CanVerticallyScroll
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | true if scrolling is possible; otherwise, false. This property has no default value. |
CurrentItemLength
Gets the current item length.
Declaration
public double CurrentItemLength { get; }
Property Value
| Type | Description |
|---|---|
| double | The current width of the items if the Orientation is Horizontal; otherwise the current height. |
DesiredItemLength
Gets the desired item length. The length the item would take when ItemLength is set to NaN.
Declaration
public double DesiredItemLength { get; }
Property Value
| Type | Description |
|---|---|
| double |
ExtentHeight
Gets the vertical size of the extent.
Declaration
public double ExtentHeight { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the vertical size of the extent. This property has no default value. |
ExtentWidth
Gets the horizontal size of the extent.
Declaration
public double ExtentWidth { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the horizontal size of the extent. This property has no default value. |
HorizontalOffset
Gets the horizontal offset of the scrolled content.
Declaration
public double HorizontalOffset { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the horizontal offset. This property has no default value. |
ItemLength
Gets or sets the item length.
Declaration
public double ItemLength { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The width of the items if the Orientation is Horizontal; otherwise the height. |
ItemMargin
Gets or sets the margin between items.
Declaration
public double ItemMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
MinExtentLength
Gets the minimum extent length the children need.
Declaration
public double MinExtentLength { get; }
Property Value
| Type | Description |
|---|---|
| double |
MinItemLength
Gets the minimum item length. This is the minimum length then child items report.
Declaration
public double MinItemLength { get; }
Property Value
| Type | Description |
|---|---|
| double | The minimum width of the child items when the Orientation is Horizontal; The minimum height of the child items otherwise. |
Orientation
Gets or sets the Orientation of the panel.
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| Orientation |
ScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
Declaration
public ScrollViewer ScrollOwner { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollViewer | A ScrollViewer element that controls scrolling behavior. This property has no default value. |
VerticalOffset
Gets the vertical offset of the scrolled content.
Declaration
public double VerticalOffset { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the ExtentHeight minus the ViewportHeight. This property has no default value. |
ViewportHeight
Gets the vertical size of the viewport for this content.
Declaration
public double ViewportHeight { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the vertical size of the viewport for this content. This property has no default value. |
ViewportWidth
Gets the horizontal size of the viewport for this content.
Declaration
public double ViewportWidth { get; }
Property Value
| Type | Description |
|---|---|
| double | A double that represents, in device independent pixels, the horizontal size of the viewport for this content. This property has no default value. |
Methods
View SourceArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
| Type | Description |
|---|---|
| Size | The actual size used. |
Overrides
View SourceLineDown()
Scrolls down within content by one logical unit.
Declaration
public void LineDown()
LineLeft()
Scrolls left within content by one logical unit.
Declaration
public void LineLeft()
LineRight()
Scrolls right within content by one logical unit.
Declaration
public void LineRight()
LineUp()
Scrolls up within content by one logical unit.
Declaration
public void LineUp()
MakeVisible(Visual, Rect)
Forces content to scroll until the coordinate space of a Visual object is visible.
Declaration
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| Visual | visual | A Visual that becomes visible. |
| Rect | rectangle | A bounding rectangle that identifies the coordinate space to make visible. |
Returns
| Type | Description |
|---|---|
| Rect | A Rect that is visible. |
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | constraint |
Returns
| Type | Description |
|---|---|
| Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
Overrides
View SourceMouseWheelDown()
Scrolls down within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelDown()
MouseWheelLeft()
Scrolls left within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelLeft()
MouseWheelRight()
Scrolls right within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelRight()
MouseWheelUp()
Scrolls up within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelUp()
OnIsItemsHostChanged(bool, bool)
Indicates that the IsItemsHost property value has changed.
Declaration
protected override void OnIsItemsHostChanged(bool oldIsItemsHost, bool newIsItemsHost)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | oldIsItemsHost | The old property value. |
| bool | newIsItemsHost | The new property value. |
Overrides
View SourcePageDown()
Scrolls down within content by one page.
Declaration
public void PageDown()
PageLeft()
Scrolls left within content by one page.
Declaration
public void PageLeft()
PageRight()
Scrolls right within content by one page.
Declaration
public void PageRight()
PageUp()
Scrolls up within content by one page.
Declaration
public void PageUp()
SetHorizontalOffset(double)
Sets the amount of horizontal offset.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
| Type | Name | Description |
|---|---|---|
| double | offset | The degree to which content is horizontally offset from the containing viewport. |
SetVerticalOffset(double)
Sets the amount of vertical offset.
Declaration
public void SetVerticalOffset(double offset)
Parameters
| Type | Name | Description |
|---|---|---|
| double | offset | The degree to which content is vertically offset from the containing viewport. |