Exemplo n.º 1
0
 private void SliderOnDragStarted(object sender, DragStartedEventArgs e)
 {
     _isDragging = true;
     if (LinkedColorPickingComponent != null)
     {
         LinkedColorPickingComponent.StartColorManipulation();
     }
 }
Exemplo n.º 2
0
 private void SliderOnDragCompleted(object sender, DragCompletedEventArgs e)
 {
     _isDragging = false;
     if (LinkedColorPickingComponent != null)
     {
         LinkedColorPickingComponent.EndColorManipulation();
     }
 }
Exemplo n.º 3
0
 private void Thumb_DragStarted(object sender, DragStartedEventArgs e)
 {
     m_HueDragStarted        = H;
     m_SaturationDragStarted = S;
     m_DragStartPos          = new Point(e.HorizontalOffset, e.VerticalOffset);
     if (LinkedColorPickingComponent != null)
     {
         LinkedColorPickingComponent.StartColorManipulation();
     }
     _isDragging = true;
 }
Exemplo n.º 4
0
 private void UpdateLinkedColorField()
 {
     if (LinkedColorPickingComponent != null)
     {
         // Dragging update Command, Manipulation has been started in drag handler
         if (_isDragging)
         {
             LinkedColorPickingComponent.ManipulateColor(R, G, B, A);
             App.Current.UpdateRequiredAfterUserInteraction = true;
         }
         // Single Click -> One command
         else
         {
             LinkedColorPickingComponent.StartColorManipulation();
             LinkedColorPickingComponent.ManipulateColor(R, G, B, A);
             LinkedColorPickingComponent.EndColorManipulation();
             App.Current.UpdateRequiredAfterUserInteraction = true;
         }
     }
 }