private LibraryItem CreateLibraryItem()
        {
            LibraryItem item = new LibraryItem()
            {
                SceneContent = CreateSceneContent()
            };

            return item;
        }
        private void replicateButton_Tapped(object sender, TappedRoutedEventArgs e)
        {
            string selectedText = contentText.SelectedText;
            if (string.IsNullOrEmpty(selectedText))
            {
                selectedText = contentText.Text;
            }

            LibraryItem libraryItem = new LibraryItem();
            libraryItem.SceneContent = new TextSceneContent();
            libraryItem.SceneContent.Content = selectedText;
            libraryItem.Id = "replicated";

            ReplicaCreated(libraryItem);
        }
Example #3
0
 private async System.Threading.Tasks.Task LoadFiles(IList<StorageFile> files)
 {
     foreach (StorageFile file in files)
     {
         LibraryItem libraryItem = new LibraryItem();
         libraryItem.Id = file.Name;
         libraryItem.SceneContent = new TextSceneContent();
         libraryItem.SceneContent.Content = await FileIO.ReadTextAsync(file);
         libraryViewModel.Items.Add(libraryItem);
     }
 }
Example #4
0
 public Scene(LibraryItem libraryItem)
     : this()
 {
     _libraryItem = libraryItem;
     _libraryItemId = libraryItem.Id;
 }
Example #5
0
 public InteractiveScene(LibraryItem libraryItem)
     : base(libraryItem)
 {
 }