private async void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            this.Loaded -= this.OnLoaded;

            if (MainPage.Session == null)
            {
                this.NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
                return;
            }

            this.liveClient = new LiveConnectClient(MainPage.Session);

            try
            {
                LiveOperationResult operationResult = await this.liveClient.GetAsync("/me/skydrive/files");

                dynamic result = operationResult.Result;
                if (result.data == null)
                {
                    this.ShowError("Server did not return a valid response.");
                    return;
                }

                dynamic items = result.data;
                this.ListBox.Items.Clear();
                foreach (dynamic item in items)
                {
                    var newItem = new SkyDriveItem(item);

                    var itemTile = new SkyDriveItemTile()
                    {
                        ItemName    = newItem.Name,
                        DataContext = newItem,
                    };

                    itemTile.OnItemSelect += itemTile_OnItemSelect;

                    this.ListBox.Items.Add(itemTile);
                }
            }
            catch (LiveConnectException e)
            {
                this.ShowError(e.Message);
            }
        }
        private async void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            this.Loaded -= this.OnLoaded;

            if (MainPage.Session == null)
            {
                this.NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
                return;
            }

            this.liveClient = new LiveConnectClient(MainPage.Session);

            try
            {
                LiveOperationResult operationResult = await this.liveClient.GetAsync("/me/skydrive/files");
                dynamic result = operationResult.Result;
                if (result.data == null)
                {
                    this.ShowError("Server did not return a valid response.");
                    return;
                }

                dynamic items = result.data;
                this.ListBox.Items.Clear();
                foreach (dynamic item in items)
                {
                    var newItem = new SkyDriveItem(item);

                    var itemTile = new SkyDriveItemTile()
                    {
                        ItemName = newItem.Name,
                        DataContext = newItem,
                    };

                    itemTile.OnItemSelect += itemTile_OnItemSelect;

                    this.ListBox.Items.Add(itemTile);
                }
            }
            catch (LiveConnectException e)
            {
                this.ShowError(e.Message);
            }
        }