diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-14 14:43:25 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-14 14:43:25 +0200 |
| commit | e352c4e5f742585e4feeb2ca3183bd4d0282a567 (patch) | |
| tree | e93b09e5fc5ed12e0e4ae9b6d2e268e3bc0c5d1e /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters | |
| parent | b6615cec573616c9b6469c010982dda689ee3844 (diff) | |
| download | Tango-e352c4e5f742585e4feeb2ca3183bd4d0282a567.tar.gz Tango-e352c4e5f742585e4feeb2ca3183bd4d0282a567.zip | |
Implemented new MDI Container Control !
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters/PointToMarginConverter.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters/PointToMarginConverter.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters/PointToMarginConverter.cs new file mode 100644 index 000000000..e6587b1ee --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Converters/PointToMarginConverter.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Data; + +namespace Tango.MachineStudio.Common.Converters +{ + public class PointToMarginConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + Point p = (Point)value; + return new Thickness(p.X, p.Y, 0, 0); + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} |
