Lottery/Lottery/MainPage.xaml
onyx-and-iris e1ab2087a2 rename LottoPickerException to LotteryException
add SemanticScreenReader Announcement on button clicked.
It reads the text from the NumbersLabel
2024-09-27 02:01:24 +01:00

19 lines
724 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Lottery.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Picker x:Name="LotteryPicker" Title="Kind of Lottery" SelectedIndexChanged="LotteryPicker_SelectedIndexChanged" />
<Label x:Name="NumbersLabel" Text="Click Spin button to generate" HorizontalOptions="Center" FontSize="Medium" />
<Button x:Name="SpinButton" Text="Spin" Clicked="SpinButton_Clicked"/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>