Exemplo n.º 1
0
 public void ChangeColorOfSelectedDrawing()
 {
     foreach (var stroke in CurrentInkCanvas.GetSelectedStrokes())
     {
         stroke.DrawingAttributes.Color = _sharedDrawingAttributes.Color;
     }
 }
Exemplo n.º 2
0
 public void ChangeThicknessOfSelectedDrawing()
 {
     foreach (var stroke in CurrentInkCanvas.GetSelectedStrokes())
     {
         stroke.DrawingAttributes.Width  = _sharedDrawingAttributes.Width;
         stroke.DrawingAttributes.Height = _sharedDrawingAttributes.Height;
     }
 }
Exemplo n.º 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);
     }
 }