Added Undo List to hold freshly undid drawn Lines
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.IO;
|
||||
@@ -27,7 +28,8 @@ public class ViewModelBase : ObservableObject
|
||||
public IRelayCommand<PointerReleasedEventArgs>? CanvasPointerReleasedCommand { get; set; }
|
||||
public ObservableCollection<DrawingPoints> DrawingPoints { get; set; } = new();
|
||||
public DrawingPoints? DrawingPoint { get; set; }
|
||||
|
||||
protected List<DrawingPoints> UndoDrawingPoints = new();
|
||||
|
||||
protected bool IsDrawing { get; set; }
|
||||
|
||||
private string _selectedColor = "Black";
|
||||
|
||||
Reference in New Issue
Block a user