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