I have a full screen image using this code:
<phone:PhoneApplicationPage x:Class="solution.FullScreenViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;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="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" mc:Ignorable="d" shell:SystemTray.IsVisible="True"> <Image Name="img" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"Stretch="Uniform"/> </phone:PhoneApplicationPage>
This is just part of a larger project. I wanted to implement te feture to open an image in full screen after clicking on it, so that I would make another page with one image and nothing else. I am loading an image from C # using this code:
protected override void OnNavigatedTo(NavigationEventArgs e) { string context = this.NavigationContext.QueryString["context"]; img.Source = new BitmapImage(new Uri(context, UriKind.RelativeOrAbsolute)); base.OnNavigatedTo(e); }
Now I would like to add an option to increase the image, but I do not know how to do it. I also tried Google, but the only thing I found was to use ZoomMode in ScroolViewer, which does not work for me (it says that the ZoomMode member is not recognized).
Is there any other solution to increase?
source share