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