HypernovaDesktop Components · docs
Binarymission
WPF › Ribbon › IsLessThanValueConverter

IsLessThanValueConverter

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office

Reports whether a bound size is under 40 device-independent units.

public class IsLessThanValueConverter : IValueConverter

Inherits from / implements: IValueConverter

Remarks

The ribbon's scroll bars use it to drop the grip lines from a thumb too short to hold them. The threshold is fixed. The converter is public so that a template of your own can use the same test.

Members at a glance

Methods
ConvertTests a size against 40 units.
ConvertBackNot supported: the conversion is one-way.

Methods

Convert

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Tests a size against 40 units.

Parameters
value
The size, a double, in device-independent units (1/96 inch).
targetType
Not used.
parameter
Not used.
culture
Not used.
Returns

true when the size is under 40; otherwise false.

Exceptions
System.InvalidCastException
value is not a double.

ConvertBack

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Not supported: the conversion is one-way.

Parameters
value
Not used.
targetType
Not used.
parameter
Not used.
culture
Not used.
Returns

Never returns.

Exceptions
System.NotImplementedException
Always.