From e1ab2087a26cca441db4365c69622e6c768ebdb7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Sep 2024 02:01:24 +0100 Subject: [PATCH] rename LottoPickerException to LotteryException add SemanticScreenReader Announcement on button clicked. It reads the text from the NumbersLabel --- Lottery/AppShell.xaml | 4 ++-- Lottery/Exception.cs | 4 ++-- Lottery/MainPage.xaml | 2 +- Lottery/MainPage.xaml.cs | 13 +++++++------ 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Lottery/AppShell.xaml b/Lottery/AppShell.xaml index 6eefca0..7c44897 100644 --- a/Lottery/AppShell.xaml +++ b/Lottery/AppShell.xaml @@ -5,10 +5,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:Lottery" Shell.FlyoutBehavior="Disabled" - Title=""> + Title="Lottery Number Generator"> diff --git a/Lottery/Exception.cs b/Lottery/Exception.cs index 5905777..26e61ba 100644 --- a/Lottery/Exception.cs +++ b/Lottery/Exception.cs @@ -1,9 +1,9 @@ namespace Lottery { /// - /// Base Exception class for the LottoPicker app + /// Base Exception class for the Lottery app /// - internal class LottoPickerException(string message) : Exception(message) + internal class LotteryException(string message) : Exception(message) { } } diff --git a/Lottery/MainPage.xaml b/Lottery/MainPage.xaml index 7c1e704..8924a61 100644 --- a/Lottery/MainPage.xaml +++ b/Lottery/MainPage.xaml @@ -7,7 +7,7 @@ - +