-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.axaml
22 lines (20 loc) · 1.34 KB
/
MainWindow.axaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="LuckyDrawApp.MainWindow"
Title="Lucky Draw App">
<Grid RowDefinitions="Auto,*,50,Auto,*" ColumnDefinitions="*,*" Margin="20" Height="600" Width="800">
<TextBlock Grid.Row="0" Grid.Column="0" Text="Participants:" FontWeight="SemiBold"
HorizontalAlignment="Center" Margin="0,0,0,10" />
<TextBox x:Name="textBoxParticipants" Grid.Row="1" Grid.Column="0" AcceptsReturn="True" TextWrapping="Wrap"
ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="0,0,10,0" />
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal"
HorizontalAlignment="Center" Spacing="10">
<Button x:Name="ButtonLoadExcel" Margin="5" Click="ButtonLoadExcel_Click">Load Excel</Button>
<Button x:Name="buttonDraw" Margin="5" Content="Draw Winners" Click="ButtonDraw_Click" />
</StackPanel>
<TextBlock Grid.Row="0" Grid.Column="1" Text="Winners:" FontWeight="SemiBold"
HorizontalAlignment="Center" Margin="0,0,0,10" />
<TextBox x:Name="textBoxWinners" Grid.Row="1" Grid.Column="1" IsReadOnly="True" TextWrapping="Wrap"
ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="10,0,0,0" />
</Grid>
</Window>