Show / Hide Table of Contents

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.

Inheritance
Object
ThicknessMaskConverter
Implements
IValueConverter
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 Source

Convert(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 parameter replaced by zero.

| Improve this Doc View Source

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.

Implements

System.Windows.Data.IValueConverter
  • Improve this Doc
  • View Source
Back to top Generated by DocFX