コード例 #1
0
 internal void OnNavigatedTo(BlobDetailNavigationContext context)
 {
     this.StorageAccount = context.Account;
     this.Container      = context.Container;
     this.Blob           = context.Blob;
     InitializeClient();
     Refresh();
 }
コード例 #2
0
        private void GridView_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            var element = e.OriginalSource as FrameworkElement;
            var item    = element.DataContext as AzureStorageBlob;

            if (item.IsDirectory)
            {
                var context = new BlobListNavigationContext();
                context.Account    = viewModel.StorageAccount;
                context.BlobPrefix = item.Path;
                context.Container  = viewModel.Container;

                this.Frame.Navigate(typeof(BlobListView), context);
            }
            else
            {
                var context = new BlobDetailNavigationContext();
                context.Account   = viewModel.StorageAccount;
                context.Blob      = item;
                context.Container = viewModel.Container;

                this.Frame.Navigate(typeof(BlobDetailView), context);
            }
        }