Alexandria.PutAway.OnNavigatedTo C# (CSharp) Метод

OnNavigatedTo() защищенный Метод

protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
Результат void
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            navigationHelper.OnNavigatedTo(e);
            var dictionary = (Dictionary<string, Dictionary<string, string>>)e.Parameter;
            Shelf.Text = "Shelf: " + dictionary["shelf"]["number"];
            if (dictionary["left"]["title"] == "")
            {
                LeftTitle.Text = "This book is";
                LeftLCC.Text = "the first book on the shelf";
            }
            else
            {
                LeftTitle.Text = dictionary["left"]["title"];
                LeftLCC.Text = dictionary["left"]["lcc"];
            }
            BitmapImage bitmapImageLeft = new BitmapImage();
            LeftImage.Height = bitmapImageLeft.DecodePixelHeight = 250;
            try
            {
                bitmapImageLeft.UriSource = new Uri(dictionary["left"]["image"]);
                LeftImage.Source = bitmapImageLeft;
                LeftBorder.Background = new SolidColorBrush(Windows.UI.Colors.White);

            }
            catch (Exception) {
                LeftBorder.Background = (SolidColorBrush)Resources["ListViewItemPlaceholderBackgroundThemeBrush"];
            }

            if(dictionary["right"]["title"] == "")
            {
                RightTitle.Text = "This book is";
                RightLCC.Text = "the last book on the shelf";
            }
            else
            {
                RightTitle.Text = dictionary["right"]["title"];
                RightLCC.Text = dictionary["right"]["lcc"];
            }
            BitmapImage bitmapImageRight = new BitmapImage();
            RightImage.Height = bitmapImageRight.DecodePixelHeight = 250;
            try
            {
                bitmapImageRight.UriSource = new Uri(dictionary["right"]["image"]);
                RightImage.Source = bitmapImageRight;
                RightBorder.Background = new SolidColorBrush(Windows.UI.Colors.White);

            }
            catch (Exception) {
                RightBorder.Background = (SolidColorBrush)Resources["ListViewItemPlaceholderBackgroundThemeBrush"];
            }
        }