Beispiel #1
0
 public void ChangeColorOfSelectedDrawing()
 {
     foreach (var stroke in CurrentInkCanvas.GetSelectedStrokes())
     {
         stroke.DrawingAttributes.Color = _sharedDrawingAttributes.Color;
     }
 }
Beispiel #2
0
 public void ChangeThicknessOfSelectedDrawing()
 {
     foreach (var stroke in CurrentInkCanvas.GetSelectedStrokes())
     {
         stroke.DrawingAttributes.Width  = _sharedDrawingAttributes.Width;
         stroke.DrawingAttributes.Height = _sharedDrawingAttributes.Height;
     }
 }
Beispiel #3
0
 public void DeleteSelectedInCurrentInkCanvas()
 {
     foreach (var element in CurrentInkCanvas.GetSelectedElements().ToList())
     {
         CurrentInkCanvas.Children.Remove(element);
     }
     foreach (var stroke in CurrentInkCanvas.GetSelectedStrokes().ToList())
     {
         CurrentInkCanvas.Strokes.Remove(stroke);
     }
 }