Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        private async void FillPage(String path = "")
        {
            if (DropboxListBox.Items.Count > 0)
            {
                DropboxListBox.ScrollIntoView(DropboxListBox.Items[0]);
            }

            ProgressBar.Visibility      = Visibility.Visible;
            ProgressBar.IsIndeterminate = true;

            String jsonMetadata = await DropboxHelper.GetMetaData(path);

            Metadata meta = new Metadata(jsonMetadata);

            DataContext = meta;

            ParentFolderTextBox.Visibility = (meta.Path != "/") ? Visibility.Visible : Visibility.Collapsed;
            ProgressBar.IsIndeterminate    = false;
            ProgressBar.Visibility         = Visibility.Collapsed;
        }