public void NewDocument() { OpenDocuments.Add(DocumentViewModel.LoadFromPayload(this, @"{ ""type"": ""AdaptiveCard"", ""version"": ""0.5"", ""body"": [ { ""type"": ""TextBlock"", ""text"": ""Untitled card"" } ] }")); CurrentDocument = OpenDocuments.Last(); }
private void NewDocument() { AddDocument(CreateNewDocument()); CurrentDocument = OpenDocuments.Last(); }