private void Undo_Click(object sender, RoutedEventArgs e) { MainCanvas.Strokes.Remove(undobuf); //MainCanvas.Strokes.Add(redobuf); }