Show / Hide Table of Contents

Struct WBLength

Used with wpfBuilder functions for width/height parameters. Allows to specify minimal and/or maximal values too.

public struct WBLength
Remarks

Has implicit conversions from double, Range and tuple (double length, Range minMax). To specify width or height, pass an int or double value, like 100 or 15.25. To specify minimal value, pass a range like 100... To specify maximal value, pass a range like ..100. To specify minimal and maximal values, pass a range like 100..500. To specify width or height and minimal or/and maximal values, pass a tuple like (100, 50..) or (100, ..200) or (100, 50..200).


Namespace: Au.Types
Assembly: Au.dll

Methods

Name Description
ApplyTo(FrameworkElement, bool)

Sets Width or Height or/and MinWidth/MinHeight or/and MaxWidth/MaxHeight of the element.

GetLength(out double)

Gets the width or height value. Returns false if not set.

GetMax(out int)

Gets the maximal value. Returns false if not set.

GetMin(out int)

Gets the minimal value. Returns false if not set.

Operators

Name Description
implicit operator WBLength(double)
implicit operator WBLength(Range)
implicit operator WBLength((double length, Range minMax))