An IValueConverter that uses the LeftFactor, RightFactor, TopFactor, and BottomFactor properties
to create a Thickness object. The factor properties are multiplied by the width and height values
of a given Rect to calculate the values of the created Thickness values.
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
[ValueConversionAttribute(typeof(Rect), typeof(Thickness))] public class MarginConverter : IValueConverter |
Visual Basic (Declaration) |
---|
<ValueConversionAttribute(GetType(Rect), GetType(Thickness))> _ Public Class MarginConverter _ Implements IValueConverter |