Example #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            parameter = e.Parameter as Data.BigImageDetail;
            CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
            var view = ApplicationView.GetForCurrentView();

            view.TitleBar.ButtonBackgroundColor         = Colors.Transparent;
            view.TitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
            view.Title = string.Format("{0} by {1} - {2}x{3}",
                                       parameter.Title, parameter.Author,
                                       parameter.Width, parameter.Height);
            txtTitle.Text  = view.Title;
            mainImg.Source = await Data.OverAll.BytesToImage(parameter.Image, parameter.Width, parameter.Height);

            parameter.Image = null;
            base.OnNavigatedTo(e);
        }
Example #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            parameter = e.Parameter as Data.BigImageDetail;
            CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
            var view = ApplicationView.GetForCurrentView();

            view.TitleBar.ButtonBackgroundColor         = Colors.Transparent;
            view.TitleBar.ButtonForegroundColor         = Colors.Black;
            view.TitleBar.ButtonInactiveForegroundColor = Colors.Gray;
            view.TitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
            view.Title = string.Format("{0} by {1} - {2}x{3}",
                                       parameter.Title, parameter.Author,
                                       parameter.Width, parameter.Height);
            txtTitle.Text  = view.Title;
            mainImg.Source = await Data.OverAll.BytesToImage(parameter.Image, parameter.Width, parameter.Height);

            parameter.Image = null;
            if (UserProfilePersonalizationSettings.IsSupported())
            {
                btnSetWallpaper.Visibility = Visibility.Visible;
            }
            base.OnNavigatedTo(e);
        }