Exemplo n.º 1
0
        private void UpdateDocumentPreview()
        {
            DocumentTreeView.UpdateDocument();
            DocumentJsonView.UpdateDocument();


            /*if (DetailViewSelector.SelectedIndex == 1)
             * {
             *
             * }*/

            // TODO: Update only changed node and keep tree state

            /*var document = DbSelectedItems.FirstOrDefault();
             * if (document != null)
             * {
             *  DocumentTreeView.ItemsSource = new DocumentTreeItemsSource(document);
             *
             *  if (document.Collection is FileCollectionReference reference)
             *  {
             *      var fileInfo = reference.GetFileObject(document);
             *      FilePreview.LoadFile(fileInfo);
             *      BorderFilePreview.Visibility = Visibility.Visible;
             *  }
             *  else
             *  {
             *      BorderFilePreview.Visibility = Visibility.Collapsed;
             *  }
             * }*/
        }
Exemplo n.º 2
0
 private void UpdateDocumentPreview()
 {
     DocumentTreeView.UpdateDocument();
     DocumentJsonView.UpdateDocument();
 }