client/src/Iri.Modernisation.Controls/View/ContextualBinderLayer/ContextualBinderLayer.xaml.cs
changeset 28 2d4ec5ab2a40
parent 13 b5ee436add3d
child 35 43bb1b8ed555
equal deleted inserted replaced
27:f292db96b050 28:2d4ec5ab2a40
    40             _menuAnnotationPoint = ((MouseButtonEventArgs)e.Parameter).GetPosition(Application.Current.RootVisual);
    40             _menuAnnotationPoint = ((MouseButtonEventArgs)e.Parameter).GetPosition(Application.Current.RootVisual);
    41         }
    41         }
    42 
    42 
    43         void  myDispatcherTimer_Tick(object sender, EventArgs e)
    43         void  myDispatcherTimer_Tick(object sender, EventArgs e)
    44         {
    44         {
    45  	          LayoutRoot.Background = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType);
    45             LayoutRoot.Background = new SolidColorBrush(_movingBinder.PolemicType.Color);
    46                     LayoutRoot.Background.Opacity = 0.0;
    46                     LayoutRoot.Background.Opacity = 0.0;
    47                     _movingBinder.Visibility = Visibility.Visible;
    47                     _movingBinder.Visibility = Visibility.Visible;
    48                     _linkLine.Visibility = Visibility.Visible;
    48                     _linkLine.Visibility = Visibility.Visible;
    49         }
    49         }
    50         void EndBind_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
    50         void EndBind_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
   106             {
   106             {
   107                 X1 = temp.X,
   107                 X1 = temp.X,
   108                 Y1 = temp.Y,
   108                 Y1 = temp.Y,
   109                 X2 = temp.X,
   109                 X2 = temp.X,
   110                 Y2 = temp.Y,
   110                 Y2 = temp.Y,
   111                 Stroke = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType),
   111                 Stroke = new SolidColorBrush(_movingBinder.PolemicType.Color),
   112                 StrokeThickness = 2
   112                 StrokeThickness = 2
   113             };
   113             };
   114             LayoutRoot.Background = PolemicTypeColorConverter.Convert(_movingBinder.PolemicType);
   114             LayoutRoot.Background = new SolidColorBrush(_movingBinder.PolemicType.Color);
   115             LayoutRoot.Background.Opacity = 0.0;
   115             LayoutRoot.Background.Opacity = 0.0;
   116             LayoutRoot.Children.Add(_movingBinder);
   116             LayoutRoot.Children.Add(_movingBinder);
   117             LayoutRoot.Children.Add(_linkLine);
   117             LayoutRoot.Children.Add(_linkLine);
   118             _active = true;
   118             _active = true;
   119             Commands.ContextualBinderLayer.ActiveBind.Execute();
   119             Commands.ContextualBinderLayer.ActiveBind.Execute();