Advertisement
ahmedabdulaziz150

Rabbits_Lab1-Lab2_XAML

Jan 28th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. <Window x:Class="Rabbits.MainWindow"
  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:Rabbits"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="Auto" Width="Auto">
  9. <Grid Background="#B3FFBC">
  10.  
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="*"/>
  15. <ColumnDefinition Width="*"/>
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="2*" />
  19. <RowDefinition Height="3*" />
  20. <RowDefinition Height="3*" />
  21. <RowDefinition Height="15*" />
  22. </Grid.RowDefinitions>
  23. <Button x:Name="Button100Rabbits" Grid.Row="1" Grid.Column="0" Background="#A4E8A2"
  24. Content= "Generate 100 Rabbits" Click="Button100Rabbits_Click" />
  25. <Button x:Name="AgeRabbits100Times" Grid.Row="1" Grid.Column="1" Background="#A4E8A2"
  26. Content= "Age Rabbits 100 Times" Click="ButtonAgeRabbits100Times_Click" />
  27. <Label x:Name="Header" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
  28. Content="Rabbit Generator" FontSize="30" FontWeight="Bold"
  29. HorizontalAlignment="Center" Background="#A7E8A2"/>
  30. <ListBox x:Name="ListBox100Rabbits" Grid.Column="0" Grid.Row="3" Background="#E2FFBF" />
  31. <ListBox x:Name="ListBoxAgeRabbits100Times" Grid.Column="1" Grid.Row="3" Background="#E2FFBF" SelectionChanged="ListBoxAgeRabbits100Times_SelectionChanged" />
  32.  
  33.  
  34. </Grid>
  35. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement