redphoto.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="SSS.redphoto"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:SSS"
  7. mc:Ignorable="d"
  8. Title="redphoto" Height="450" Width="800">
  9. <Grid Background="Lavender">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"></RowDefinition>
  12. <RowDefinition Height="35"></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
  15. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  16. <Image Width="200" Height="200" Name="FF" Source="Photo.jpg"></Image>
  17. </StackPanel>
  18. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  19. <Border BorderThickness="2" CornerRadius="7" Background="White" Width="30" Height="30">
  20. <Button FontSize="21" Foreground="Gray" FontWeight="Bold" Content="-" Click="BackPhoto"></Button>
  21. </Border>
  22. <Border BorderThickness="2" CornerRadius="7" Background="White" Height="30" Margin="5,0,0,0">
  23. <Button Click="SelectThis">Изменить фото на выбранное</Button>
  24. </Border>
  25. <Border BorderThickness="2" CornerRadius="7" Background="White" Width="30" Height="30" Margin="5,0,0,0">
  26. <Button FontSize="21" Foreground="Gray" FontWeight="Bold" Content="+" Click="NextPhoto"></Button>
  27. </Border>
  28. </StackPanel>
  29. </StackPanel>
  30. <StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="3,0,0,0">
  31. <Border BorderThickness="2" CornerRadius="7" BorderBrush="#bababa" Background="White" Width="100" Height="30">
  32. <Button Content="Назад" FontSize="16" Click="Back"></Button>
  33. </Border>
  34. </StackPanel>
  35. </Grid>
  36. </Window>