WPF › Rounded Corner Container › VisualElementHostSizeConverter
VisualElementHostSizeConverter
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Containers
Combines a bound width and height into a rectangle, which is what the rounded corner container needs to clip the visual it hosts.
public class VisualElementHostSizeConverter : IMultiValueConverter
Inherits from / implements: IMultiValueConverter
Members at a glance
Convert | Performs the conversion this converter exists for, as described on VisualElementHostSizeConverter. |
ConvertBack | Not supported. This conversion is one-way, so there is nothing to convert back to. |
Methods
Convert
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Performs the conversion this converter exists for, as described on VisualElementHostSizeConverter.
- values
- The values produced by the bindings in the multi-binding, in order.
- targetType
- The type the binding target expects.
- parameter
- The converter parameter given in the binding.
- culture
- The culture to use for the conversion.
Returns. The converted value.
ConvertBack
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
Not supported. This conversion is one-way, so there is nothing to convert back to.
- value
- The value produced by the binding source.
- targetTypes
- The types the binding targets expect.
- parameter
- The converter parameter given in the binding.
- culture
- The culture to use for the conversion.
Returns. No usable value.