Example #1
0
 void Device_StackingChanged(object sender, StackingEventArgs e)
 {
     Dispatcher.Invoke(DispatcherPriority.Background,
       (Action)delegate()
       {
     UIThreadDevice_StackingChanged(sender, e);
       });
 }
Example #2
0
 void Device_StackingChanged(object sender, StackingEventArgs e)
 {
     if (e.State == StackingState.NotStacked)
       {
     StackingControlState = tPad.StackingControlState.None;
     OnStackingControl(this, new StackingControlEventArgs() { Device = Core.Device, NewState = StackingControlState });
       }
 }
Example #3
0
 void UIThreadDevice_StackingChanged(object sender, StackingEventArgs e)
 {
     if (e.State == StackingState.NotStacked)
       {
     if (inkCScribble.Strokes.Contains(stackingSelectionStroke))
       inkCScribble.Strokes.Remove(stackingSelectionStroke);
     inkCScribble.DefaultDrawingAttributes.Color = previousColor;
       }
       else if (e.State == StackingState.StackedBelow || e.State == StackingState.StackedOnTop)
       {
     CurrentTool = ActiveReadingTool.None;
     previousColor = inkCScribble.DefaultDrawingAttributes.Color;
     inkCScribble.DefaultDrawingAttributes.Color = Color.FromRgb(0, 0, 255);
       }
 }