Represents the size of SplitContainer resizable areas.

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll)

Syntax

C#
[TypeConverterAttribute(typeof(SplitterDistanceConverter))]
public struct SplitterDistance : IEquatable<SplitterDistance>
Visual Basic
<TypeConverterAttribute(GetType(SplitterDistanceConverter))> _
Public Structure SplitterDistance _
	Implements IEquatable(Of SplitterDistance)

Remarks

When Value property is NaN, it represents auto sizing: the actual size will be determined by the content's desired size. When UnitType property is Star, the size will be calculated based on weighted proportion of available space.

The SplitterDistance value can have following values in XAML ("?" represents a double value):

"Auto": Auto size in pixel. The subsequent resizing by mouse drog or arrow key will result in a Pixel type value.
"Auto*": Auto size in weighted proportion. The subsequent resizing by mouse drog or arrow key will result in a Star type value.
"*": Equals "1*".
"?*": Weighted proportion: resultSize = totalAvailableSize * ? / (? + 1).
"?": Equals "?px".
"?px": ? device-independent units (1/96th inch per unit).
"?in": ? inch; 1in==96px.
"?cm": ? centimeters; 1cm==(96/2.54)px.
"?pt": ? points; 1pt==(96/72)px.

See Also