client/src/Iri.Modernisation.Controls/View/ContextualLinkBinder.xaml.cs
changeset 0 249d70e7b32d
child 13 b5ee436add3d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/View/ContextualLinkBinder.xaml.cs	Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,58 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using Iri.Modernisation.Data.Models;
+using System.Windows.Data;
+using Iri.Modernisation.BaseMVVM.Commands;
+using Iri.Modernisation.Controls.Converter;
+
+
+
+namespace Iri.Modernisation.Controls.View
+{
+    public partial class ContextualLinkBinder : UserControl
+    {
+
+        public PolemicElementType PolemicType
+        {
+            get { return (PolemicElementType)GetValue(_polemicType); }
+            set
+            {
+                
+                SetValue(_polemicType, value);
+                PolemicTypeColorConverter converter = new PolemicTypeColorConverter();
+                path9020.Stroke = PolemicTypeColorConverter.Convert(value);
+
+            }
+        }
+
+        public static readonly DependencyProperty _polemicType =
+            DependencyProperty.Register("PolemicType", typeof(PolemicElementType), typeof(ContextualLinkBinder), new PropertyMetadata(PolemicElementType.Basic));
+
+        /* public Brush ArrowColor
+         {
+             get { return path9020.Stroke; }
+             set { path9020.Stroke = value; }
+         }*/
+        public ContextualLinkBinder()
+        {
+            // Required to initialize variables
+              InitializeComponent();
+              MouseLeftButtonDown += Commands.ContextualBinderLayer.BeginBind.Execute;
+
+
+        }
+        public ContextualLinkBinder(ContextualLinkBinder copy)
+        {
+            InitializeComponent();
+            PolemicType = copy.PolemicType;
+        }
+    }
+    
+}
\ No newline at end of file