private List<InMemoryRandomAccessStream> undoStreamList;
InMemoryRandomAccessStream tempStream = new InMemoryRandomAccessStream();
await inkCanvas.InkPresenter.StrokeContainer.SaveAsync(tempStream);
undoStreamList.Add(tempStream);
state++;
This code returns a NullReferenceException
on the penultimate line, how do I fix it?
I also tried changing the penultimate line to undoStreamList.Add(new InMemoryRandomAccessStream);
but it didn't work.