Advertisement
Guest User

Form2 XAML

a guest
Mar 30th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <Page
  2. x:Class="Nazwiska.Form2"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Nazwiska"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d"
  9. Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Height="847" Width="1269">
  10.  
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="3*"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition/>
  18. <RowDefinition/>
  19. <RowDefinition/>
  20. <RowDefinition Height="4*"/>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23.  
  24. <TextBlock Grid.Row="0" Grid.Column="0" Text="Imie" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" />
  25. <TextBlock Grid.Row="1" Grid.Column="0" Text="Nazwisko" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" />
  26. <TextBlock Grid.Row="2" Grid.Column="0" Text="Miasto" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" />
  27.  
  28.  
  29. <TextBox Grid.Row="0" Grid.Column="1" x:Name="ImieTxt" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" Margin="0,0,20,0"/>
  30. <TextBox Grid.Row="1" Grid.Column="1" x:Name="NazwiskoTxt" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" Margin="0,0,20,0"/>
  31. <TextBox Grid.Row="2" Grid.Column="1" x:Name="AdresTxt" FontSize="48" VerticalAlignment="Center" HorizontalTextAlignment="Center" Margin="0,0,20,0"/>
  32. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center">
  33. <RelativePanel>
  34. <Button Content="Dodaj" x:Name="dodajButton" RelativePanel.LeftOf="edytujButton" Width="150" Height="60" Background="LightGreen" Margin="0,0,300,0" FontSize="36" Click="dodajButton_Click"/>
  35. <Button Content="Edytuj" x:Name="edytujButton" RelativePanel.AlignHorizontalCenterWithPanel="True" Background="LightGreen" Width="150" Height="60" FontSize="36" Click="edytujButton_Click"/>
  36. <Button Content="Wróć" x:Name="powrocButton" RelativePanel.RightOf="edytujButton" Width="150" Background="LightGreen" Height="60" Margin="300,0,0,0" FontSize="36" Click="powrocButton_Click"/>
  37. </RelativePanel>
  38.  
  39. </StackPanel>
  40. <StackPanel Grid.Row="3" Width="500" Height="274" Margin="68,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1">
  41. <Image x:Name="Obrazek" VerticalAlignment="Center" HorizontalAlignment="Center" Height="274"/>
  42. </StackPanel>
  43. </Grid>
  44. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement