Class ThicknessMaskConverter
Converts a Thickness to another Thickness by only using the values (Left etc.) of the source Thickness as indicated by a ThicknessMask parameter. All other values are set to zero.
Implements
Inherited Members
Namespace: PresentationTheme.AeroLite.Win10
Assembly: PresentationTheme.AeroLite.Win10.dll
Syntax
[ValueConversion(typeof(Thickness), typeof(Thickness), ParameterType = typeof(ThicknessMask))]
public sealed class ThicknessMaskConverter : IValueConverter
Methods
| Improve this Doc View SourceConvert(Object, Type, Object, CultureInfo)
Converts a Thickness value to a Visibility.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value produced by the binding source. |
Type | targetType | The type of the binding target property. |
Object | parameter | A ThicknessMask indicating which values of the source value to keep. |
CultureInfo | culture | Not used. |
Returns
Type | Description |
---|---|
Object | The source Thickness with all values not indicating
by the ThicknessMask |
ConvertBack(Object, Type, Object, CultureInfo)
Not supported.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object | value | Not used. |
Type | targetType | Not used. |
Object | parameter | Not used. |
CultureInfo | culture | Not used. |
Returns
Type | Description |
---|---|
Object | Not used. |
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |