mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 13:02:05 +03:00
c0d31a8652
user picture image crop
59 lines
3.2 KiB
XML
59 lines
3.2 KiB
XML
<phone:PhoneApplicationPage x:Class="MyFriendsAround.WP7.Views.CropPage"
|
|
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" xmlns:binding="clr-namespace:Coding4Fun.Phone.Controls.Binding;assembly=Coding4Fun.Phone.Controls" xmlns:Preview="clr-namespace:Phone7.Fx.Preview;assembly=Phone7.Fx.Preview" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP7" FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
|
FontSize="{StaticResource PhoneFontSizeNormal}"
|
|
Foreground="{StaticResource PhoneForegroundBrush}"
|
|
SupportedOrientations="Portrait" Orientation="Portrait"
|
|
DataContext="{Binding Main, Source={StaticResource Locator}}"
|
|
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
|
|
shell:SystemTray.IsVisible="True">
|
|
|
|
<!--LayoutRoot is the root grid where all page content is placed-->
|
|
<Grid x:Name="LayoutRoot" Background="Transparent">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!--TitlePanel contains the name of the application and page title-->
|
|
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,12,0,12">
|
|
<TextBlock x:Name="ApplicationTitle" Text="{Binding Path=ApplicationTitle}" Style="{StaticResource PhoneTextNormalStyle}"
|
|
Foreground="{StaticResource PhoneAccentBrush}" />
|
|
<TextBlock x:Name="PageTitle"
|
|
Text="{Binding Path=PageNameCropping}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
|
|
</StackPanel>
|
|
|
|
<Grid x:Name="ImageContainer"
|
|
Background="Transparent"
|
|
Grid.Row="1" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
>
|
|
<Image
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Margin="0"
|
|
Name="image1"
|
|
Stretch="Uniform"
|
|
/>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
<phone:PhoneApplicationPage.ApplicationBar>
|
|
<shell:ApplicationBar IsVisible="True" Opacity="0.8"
|
|
IsMenuEnabled="True">
|
|
<shell:ApplicationBarIconButton IconUri="/Toolkit.Content/ApplicationBar.Check.png"
|
|
Text="Accept"
|
|
Click="Accept_Click" />
|
|
<shell:ApplicationBarIconButton IconUri="/Toolkit.Content/ApplicationBar.Cancel.png"
|
|
Text="Cancel"
|
|
Click="Cancel_Click" />
|
|
</shell:ApplicationBar>
|
|
</phone:PhoneApplicationPage.ApplicationBar>
|
|
|
|
</phone:PhoneApplicationPage>
|