Ejemplo n.º 1
0
        private async void showpathimg(Imgitem a)
        {
            BitmapImage bi = new BitmapImage();
            await bi.SetSourceAsync(await a.SF.OpenAsync(FileAccessMode.Read));

            Myimage.Source = bi;
        }
Ejemplo n.º 2
0
        private async void ShowCompactView(Imgitem imgitem)
        {
            await CoreApplication.CreateNewView().Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                var frame     = new Frame();
                compactViewId = ApplicationView.GetForCurrentView().Id;
                frame.Navigate(typeof(ShowCompactPage), imgitem);
                Window.Current.Content = frame;
                Window.Current.Activate();
                ApplicationView.GetForCurrentView().Title = "CompactOverlay Window";
            });

            bool viewShown = await ApplicationViewSwitcher.TryShowAsViewModeAsync(compactViewId, ApplicationViewMode.CompactOverlay);
        }