c# - Show image in Full screen -


I am working on the Windows Phone 8 app and there is an image view in XAML :

  & lt; Image Name = "Image" Grid. Line = "0" visibility = "collapsed" width = "auto" height = "auto" = "image_tap" horizontal alignment = "center" vertical alignment = "center" margin = "1,1,1,1" This event is called  tap = "Image_tap"  now, when I tap on the image, then I can use the same picture without any time Want to show in the screen up and down, how to get it?  

Below is the ApplicationBar and the top bar is SystemTray . If you create a new page without the ApplicationBar and you are false from SystemTray.IsVisible , then you have a full screen page now, on the root grid , just place one image and you can use that page as a full screen viewer.

  & lt; Phone: Phone Application Page: Class = "SimpleApp.FullScreenPage" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/ Winfx / 2006 / xaml "xmlns: phone =" clr-namespace: microsoft.phone control, assembly = microsoft.phone "xmlns: shell =" clr- namespace: microsoft.phone shell; assembly = microsoft.phone "xmlns: D = "Http://schemas.microsoft.com/expression/blend/2008" xmlns: mc = "http://schemas.openxmlformats.org/markup-compatibility/2006" fontfamily = "{static resorsphonefontsfamily normal}" fontsis = "{StaticResource PhoneFontSizeNormal}" Foreground Mi = "{StaticResource PhoneForegroundBrush}" Supported orientation = "portrait" orientation = "Portrait" MC: Ignorable = "d" shell: SystemTray.IsVisible = "False" & gt; & Lt; Image name = "myImage" horizontal alignment = "statch" vertical alignment = "statch" stretch = "uniform" /> & Lt; / Phone: PhoneApplicationPage & gt;   

In the main page where you can tap the image:

  Private zero myIgg_Tap (Object Sender, System.Windows.Input.GestureEventArgs e) {string context = (Bitmap image as source) .UriSource.ToString ();) as source. Navigation service Navigate (New Uri (string.conquet ("/ Page1.xaml? Context =", reference), Uricund.relative orsolute); }   

In the fullscreenpage: Safe Override was navigated to zero (Navigation EventVerses E) {string context = this.NavigationContext.QueryString ["context"] ; MyImage.Source = New Bitmap Image (new Uri (reference, UriKind.relative orsolute)); Base.OnNavigatedTo (e); }

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -