BooleanToRibbonGroupTitleTextPanelHeightConverter
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office
Turns whether a ribbon group shows its title into the height of the title strip: 16 units when it does, 1 when it does not.
public class BooleanToRibbonGroupTitleTextPanelHeightConverter : IValueConverter
Inherits from / implements: IValueConverter
Remarks
Used by the ribbon group's template; it is public so that a template of your own can do the same.
Members at a glance
| Methods | |
|---|---|
Convert | Gives the height of a group's title strip. |
ConvertBack | Not supported: the conversion is one-way. |
Methods
Convert
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Gives the height of a group's title strip.
Parameters
value- Whether the title is shown: a
bool. targetType- Not used.
parameter- Not used.
culture- Not used.
Returns
16 for true, 1 for false, in device-independent units
(1/96 inch).
Exceptions
System.InvalidCastExceptionvalueis not abool.
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.