HypernovaDesktop Components · docs
Binarymission
WPF › Ribbon › BinaryRibbonBackstageBorderWidthConverter

BinaryRibbonBackstageBorderWidthConverter

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

Takes 8 device-independent units off a bound width – the margin the backstage menu's border leaves around its content.

public class BinaryRibbonBackstageBorderWidthConverter : IValueConverter

Inherits from / implements: IValueConverter

Remarks

Used by the templates of the backstage application menu; it is public so that a template of your own can do the same.

Examples

<Window.Resources>
    <ribbon:BinaryRibbonBackstageBorderWidthConverter x:Key="insetWidth" />
</Window.Resources>

<Border Width="{Binding ActualWidth, ElementName=backstageHost, Converter={StaticResource insetWidth}}" />

Members at a glance

Methods
ConvertTakes 8 units off a width.
ConvertBackNot supported: the conversion is one-way.

Methods

Convert

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

Takes 8 units off a width.

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

The width less 8, as a double. It can be negative for a width under 8.

Exceptions
System.InvalidCastException
value is not a double.

ConvertBack

public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.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.