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