diff --git a/RightToAskClient/RightToAskClient.Maui/AppShell.xaml b/RightToAskClient/RightToAskClient.Maui/AppShell.xaml
index 0018b61e..f0a9ea5d 100644
--- a/RightToAskClient/RightToAskClient.Maui/AppShell.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/AppShell.xaml
@@ -1,14 +1,154 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/AppShell.xaml.cs b/RightToAskClient/RightToAskClient.Maui/AppShell.xaml.cs
index c0f939fb..05ee6c40 100644
--- a/RightToAskClient/RightToAskClient.Maui/AppShell.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/AppShell.xaml.cs
@@ -1,10 +1,45 @@
-namespace RightToAskClient.Maui
+using System;
+using System.Diagnostics;
+using RightToAskClient.Maui.Models;
+using RightToAskClient.Maui.ViewModels;
+using Microsoft.Maui.Controls;
+using Microsoft.Maui;
+
+namespace RightToAskClient.Maui.Views
{
- public partial class AppShell : Shell
+ public partial class AppShell : Microsoft.Maui.Controls.Shell
{
public AppShell()
{
InitializeComponent();
+ Routing.RegisterRoute(nameof(QuestionAskerPage), typeof(QuestionAskerPage));
+ Routing.RegisterRoute(nameof(QuestionDetailPage), typeof(QuestionDetailPage));
+ Routing.RegisterRoute(nameof(RegisterAccountPage), typeof(RegisterAccountPage));
+ Routing.RegisterRoute(nameof(FindMPsPage), typeof(FindMPsPage));
+ Routing.RegisterRoute(nameof(OtherUserProfilePage), typeof(OtherUserProfilePage));
+ Routing.RegisterRoute(nameof(QuestionAnswererPage), typeof(QuestionAnswererPage));
+ Routing.RegisterRoute(nameof(AdvancedSearchFiltersPage), typeof(AdvancedSearchFiltersPage));
+ Routing.RegisterRoute(nameof(MPRegistrationVerificationPage), typeof(MPRegistrationVerificationPage));
+ Routing.RegisterRoute(nameof(HowAnsweredOptionPage), typeof(HowAnsweredOptionPage));
+ Routing.RegisterRoute(nameof(QuestionBackgroundPage), typeof(QuestionBackgroundPage));
+ Routing.RegisterRoute(nameof(SelectableListPage), typeof(SelectableListPage));
+ Routing.RegisterRoute(nameof(ReportQuestionPage), typeof(ReportQuestionPage));
+ Routing.RegisterRoute(nameof(CodeOfConductPage), typeof(CodeOfConductPage));
+ // Routing.RegisterRoute(nameof(FindMPsPage), typeof(FindMPsPage));
+ }
+
+ protected override void OnNavigating(ShellNavigatingEventArgs args)
+ {
+ base.OnNavigating(args);
+ if (args.Target.Location.OriginalString.ToLower().Contains("account"))
+ {
+ AccountPageExchanger.Registration = IndividualParticipant.getInstance().ProfileData.RegistrationInfo;
+ }
+
+ if (args.Target.Location.OriginalString.ToLower().Contains("readingpagebyquestionwriter"))
+ {
+ ReadingPageExchanger.ByQuestionWriter = true;
+ }
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Helpers/HyperLinkSpan.cs b/RightToAskClient/RightToAskClient.Maui/Helpers/HyperLinkSpan.cs
new file mode 100644
index 00000000..c88a335f
--- /dev/null
+++ b/RightToAskClient/RightToAskClient.Maui/Helpers/HyperLinkSpan.cs
@@ -0,0 +1,40 @@
+using Android.Content.Res;
+using RightToAskClient.Maui.Resx;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace RightToAskClient.Maui.Helpers
+{
+ //https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/label?view=net-maui-8.0#create-a-hyperlink
+ public class HyperlinkSpan : Span
+ {
+ public static readonly BindableProperty UrlProperty =
+ BindableProperty.Create(nameof(Url), typeof(string), typeof(HyperlinkSpan), null);
+
+ public string Url
+ {
+ get { return (string)GetValue(UrlProperty); }
+ set { SetValue(UrlProperty, value); }
+ }
+
+ public HyperlinkSpan()
+ {
+ TextDecorations = TextDecorations.Underline;
+ TextColor = (Color)Application.Current.Resources["UrlTextColorLightMode"];
+ GestureRecognizers.Add(new TapGestureRecognizer
+ {
+ // Launcher.OpenAsync is provided by Essentials.
+ Command = new Command(async () => await OpenUrl(Url))
+ });
+ }
+
+ //TODO: test on real device
+ public async Task OpenUrl(string url)
+ {
+ await Launcher.OpenAsync(url);
+ }
+ }
+}
diff --git a/RightToAskClient/RightToAskClient.Maui/Helpers/NavigationUtils.cs b/RightToAskClient/RightToAskClient.Maui/Helpers/NavigationUtils.cs
index 5c4240e3..c3c04b30 100644
--- a/RightToAskClient/RightToAskClient.Maui/Helpers/NavigationUtils.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Helpers/NavigationUtils.cs
@@ -7,6 +7,7 @@
using CommunityToolkit.Maui.Extensions;
using Microsoft.Maui.Controls;
using Microsoft.Maui;
+using CommunityToolkit.Maui.Views;
/* This class contains some utilities for popping up and using pages, which may be accessed
* at any time by the app, for example the pages for finding your MP, which needs to be
@@ -94,14 +95,14 @@ public static async Task DoRegistrationCheck(Registration registration, string c
AppResources.OKText,
false);
//TODO:
- //var popupResult = await App.Current.MainPage.Navigation.ShowPopupAsync(popup);
- //if (popup.HasApproved(popupResult))
- //{
- // var registerAccountFlow = new CodeOfConductPage(registration);
- // await Application.Current.MainPage.Navigation.PushAsync(registerAccountFlow);
- // // var registerAccountPage = new RegisterAccountPage(registration);
- // // await Application.Current.MainPage.Navigation.PushAsync(registerAccountPage);
- //}
+ var popupResult = await App.Current.MainPage.ShowPopupAsync(popup);
+ if (popup.HasApproved(popupResult))
+ {
+ var registerAccountFlow = new CodeOfConductPage(registration);
+ await Application.Current.MainPage.Navigation.PushAsync(registerAccountFlow);
+ // var registerAccountPage = new RegisterAccountPage(registration);
+ // await Application.Current.MainPage.Navigation.PushAsync(registerAccountPage);
+ }
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/MainPage.xaml b/RightToAskClient/RightToAskClient.Maui/MainPage.xaml
index 5c179bdb..02f5df05 100644
--- a/RightToAskClient/RightToAskClient.Maui/MainPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/MainPage.xaml
@@ -6,27 +6,28 @@
xmlns:local="clr-namespace:RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.MainPage"
- Title="{StaticResource ApplicationTitle}"
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
+ Title="{x:Static strings:AppResources.ApplicationTitle}"
Shell.FlyoutBehavior="Flyout"
x:DataType="vm:MainPageViewModel">
-
+ IconImageSource="help_75.png" Priority="0" />
-
-
-
-
+
+
+
-
+ AutomationProperties.Name="{x:Static strings:AppResources.MainPageTrendingNowAccessibilityLabelName}"
+ AutomationProperties.HelpText="{x:Static strings:AppResources.MainPageTrendingNowAccessibilityLabelHelpText}" />
-
+
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/AdvancedSearchFiltersPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/AdvancedSearchFiltersPage.xaml
index 353a8026..7298ef7f 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/AdvancedSearchFiltersPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/AdvancedSearchFiltersPage.xaml
@@ -7,18 +7,18 @@
xmlns:local="clr-namespace:RightToAskClient.Maui"
xmlns:views="clr-namespace:RightToAskClient.Maui.Views;assembly=RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Title="{Binding Title}"
x:DataType="vm:FilterViewModel">
-
+
+ SemanticProperties.Hint="{x:Static strings:AppResources.BackHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.BackDescription}" />
@@ -29,12 +29,12 @@
-
-
+
-
+
@@ -54,9 +54,9 @@
@@ -70,14 +70,14 @@
-
-
+
-
+
@@ -100,11 +100,11 @@
-
-
-
+
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml b/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml
deleted file mode 100644
index b9faf5f9..00000000
--- a/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml.cs
deleted file mode 100644
index 05ee6c40..00000000
--- a/RightToAskClient/RightToAskClient.Maui/Views/AppShell.xaml.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Diagnostics;
-using RightToAskClient.Maui.Models;
-using RightToAskClient.Maui.ViewModels;
-using Microsoft.Maui.Controls;
-using Microsoft.Maui;
-
-namespace RightToAskClient.Maui.Views
-{
- public partial class AppShell : Microsoft.Maui.Controls.Shell
- {
- public AppShell()
- {
- InitializeComponent();
- Routing.RegisterRoute(nameof(QuestionAskerPage), typeof(QuestionAskerPage));
- Routing.RegisterRoute(nameof(QuestionDetailPage), typeof(QuestionDetailPage));
- Routing.RegisterRoute(nameof(RegisterAccountPage), typeof(RegisterAccountPage));
- Routing.RegisterRoute(nameof(FindMPsPage), typeof(FindMPsPage));
- Routing.RegisterRoute(nameof(OtherUserProfilePage), typeof(OtherUserProfilePage));
- Routing.RegisterRoute(nameof(QuestionAnswererPage), typeof(QuestionAnswererPage));
- Routing.RegisterRoute(nameof(AdvancedSearchFiltersPage), typeof(AdvancedSearchFiltersPage));
- Routing.RegisterRoute(nameof(MPRegistrationVerificationPage), typeof(MPRegistrationVerificationPage));
- Routing.RegisterRoute(nameof(HowAnsweredOptionPage), typeof(HowAnsweredOptionPage));
- Routing.RegisterRoute(nameof(QuestionBackgroundPage), typeof(QuestionBackgroundPage));
- Routing.RegisterRoute(nameof(SelectableListPage), typeof(SelectableListPage));
- Routing.RegisterRoute(nameof(ReportQuestionPage), typeof(ReportQuestionPage));
- Routing.RegisterRoute(nameof(CodeOfConductPage), typeof(CodeOfConductPage));
- // Routing.RegisterRoute(nameof(FindMPsPage), typeof(FindMPsPage));
- }
-
- protected override void OnNavigating(ShellNavigatingEventArgs args)
- {
- base.OnNavigating(args);
- if (args.Target.Location.OriginalString.ToLower().Contains("account"))
- {
- AccountPageExchanger.Registration = IndividualParticipant.getInstance().ProfileData.RegistrationInfo;
- }
-
- if (args.Target.Location.OriginalString.ToLower().Contains("readingpagebyquestionwriter"))
- {
- ReadingPageExchanger.ByQuestionWriter = true;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml
index 94834527..40a41d12 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml
@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:vm="clr-namespace:RightToAskClient.Maui.ViewModels"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
xmlns:local="clr-namespace:RightToAskClient.Maui"
xmlns:views="clr-namespace:RightToAskClient.Maui.Views;assembly=RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
@@ -13,8 +13,8 @@
Style="{StaticResource SubPage}">
+ SemanticProperties.Hint="{x:Static strings:AppResources.BackHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.BackDescription}" />
@@ -39,14 +39,14 @@
HorizontalOptions="Fill"
Padding="10" ColumnSpacing="20"
RowDefinitions="Auto" ColumnDefinitions="*, *">
-
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml.cs
index fd32aed1..37b510ea 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/CodeOfConductPage.xaml.cs
@@ -17,33 +17,27 @@ public CodeOfConductPage()
{
InitializeComponent();
}
-
+
public CodeOfConductPage(Registration registration)
{
InitializeComponent();
_registration = registration;
- //TODO
- /*
- var lightTheme = new LightMarkdownTheme();
- var darkTheme = new DarkMarkdownTheme();
- // TODO Xamarin.Forms.Device.GetNamedSize is not longer supported. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes
- lightTheme.Paragraph.FontSize = (float)Device.GetNamedSize(NamedSize.Small, typeof(Label));
- // TODO Xamarin.Forms.Device.GetNamedSize is not longer supported. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes
- lightTheme.Heading3.FontSize = (float)Device.GetNamedSize(NamedSize.Medium, typeof(Label));
- // TODO Xamarin.Forms.Device.GetNamedSize is not longer supported. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes
- darkTheme.Paragraph.FontSize = (float)Device.GetNamedSize(NamedSize.Small, typeof(Label));
- // TODO Xamarin.Forms.Device.GetNamedSize is not longer supported. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes
- darkTheme.Heading3.FontSize = (float)Device.GetNamedSize(NamedSize.Medium, typeof(Label));
- darkTheme.BackgroundColor = Colors.Black;
- */
- //TODO:
+
+ //var lightTheme = new LightMarkdownTheme();
+ //var darkTheme = new DarkMarkdownTheme();
+ //lightTheme.Paragraph.FontSize = (float)Device.GetNamedSize(NamedSize.Small, typeof(Label));
+ //lightTheme.Heading3.FontSize = (float)Device.GetNamedSize(NamedSize.Medium, typeof(Label));
+ //darkTheme.Paragraph.FontSize = (float)Device.GetNamedSize(NamedSize.Small, typeof(Label));
+ //darkTheme.Heading3.FontSize = (float)Device.GetNamedSize(NamedSize.Medium, typeof(Label));
+ //darkTheme.BackgroundColor = Color.Black;
+
//var mdView = new Xam.Forms.Markdown.MarkdownView();
-
+
//mdView.Markdown = AppResources.CodeOfConductCopy;
//mdView.RelativeUrlHost = "";
- //TODO: mdView.SetOnAppTheme(Xam.Forms.Markdown.MarkdownView.ThemeProperty, lightTheme, darkTheme);
-
- //TODO: MarkdownView.Children.Add(new ScrollView() { Content = mdView });
+ //mdView.SetOnAppTheme(Xam.Forms.Markdown.MarkdownView.ThemeProperty, lightTheme, darkTheme);
+
+ //MarkdownView.Children.Add(new ScrollView() { Content = mdView });
}
private async void Disagree_OnClicked(object sender, EventArgs e)
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/EmptyCollectionView.xaml b/RightToAskClient/RightToAskClient.Maui/Views/EmptyCollectionView.xaml
index 5f08e411..7db975f6 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/EmptyCollectionView.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/EmptyCollectionView.xaml
@@ -3,11 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="RightToAskClient.Maui.Views.EmptyCollectionView"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui">
-
+
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/EmptySelectableListSearchView.xaml b/RightToAskClient/RightToAskClient.Maui/Views/EmptySelectableListSearchView.xaml
index 4bfff390..5cfbf4c0 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/EmptySelectableListSearchView.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/EmptySelectableListSearchView.xaml
@@ -2,11 +2,11 @@
-
+
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/FindMPsPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/FindMPsPage.xaml
index 17430aa9..7e187eab 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/FindMPsPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/FindMPsPage.xaml
@@ -7,7 +7,7 @@
xmlns:views="clr-namespace:RightToAskClient.Maui.Views;assembly=RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.FindMPsPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="vm:FindMPsViewModel">
@@ -17,11 +17,11 @@
-
-
-
@@ -51,10 +51,10 @@
BackgroundColor="{StaticResource EditorBackground}">
-
@@ -69,13 +69,13 @@
-
-
@@ -100,7 +100,7 @@
-
@@ -113,7 +113,7 @@
-
@@ -126,7 +126,7 @@
-
@@ -138,7 +138,7 @@
@@ -148,7 +148,7 @@
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/HowAnsweredOptionPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/HowAnsweredOptionPage.xaml
index c45adcee..542bd282 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/HowAnsweredOptionPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/HowAnsweredOptionPage.xaml
@@ -9,7 +9,7 @@
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.HowAnsweredOptionPage"
x:DataType="vm:QuestionViewModel"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Title="{StaticResource OptionsTitleText}">
-
+
@@ -32,8 +32,8 @@
-
-
-
-
-
-
@@ -94,10 +94,10 @@
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/HowToPublishView.xaml b/RightToAskClient/RightToAskClient.Maui/Views/HowToPublishView.xaml
index c4499da7..5b9cad28 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/HowToPublishView.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/HowToPublishView.xaml
@@ -2,28 +2,28 @@
-
@@ -31,33 +31,33 @@
-
-
-
+
+
-
-
+
@@ -66,33 +66,33 @@
-
+
@@ -100,15 +100,15 @@
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/MPRegistrationVerificationPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/MPRegistrationVerificationPage.xaml
index 39888848..211c041d 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/MPRegistrationVerificationPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/MPRegistrationVerificationPage.xaml
@@ -6,7 +6,7 @@
xmlns:local="clr-namespace:RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:Class="RightToAskClient.Maui.Views.MPRegistrationVerificationPage"
x:DataType="vm:MPRegistrationVerificationViewModel"
Shell.FlyoutBehavior="Flyout"
@@ -15,8 +15,8 @@
-
+
@@ -26,18 +26,18 @@
-
-
@@ -53,13 +53,13 @@
@@ -69,11 +69,11 @@
-
-
+
-
+
+ Text="{x:Static strings:AppResources.SendVerificationPIN}"
+ SemanticProperties.Hint="{x:Static strings:AppResources.SendVerificationPINHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.SendVerificationPIN}"/>
-
+
@@ -147,11 +147,11 @@
TextChanged="VerifyCodeEntries_OnTextChanged"/>
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/OtherUserProfilePage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/OtherUserProfilePage.xaml
index 9254e000..3acbf6bb 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/OtherUserProfilePage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/OtherUserProfilePage.xaml
@@ -6,16 +6,16 @@
xmlns:views="clr-namespace:RightToAskClient.Maui.Views"
x:Class="RightToAskClient.Maui.Views.OtherUserProfilePage"
xmlns:local="clr-namespace:RightToAskClient.Maui"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui">
-
-
+
+
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml b/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml
index 06e7cf64..a4018610 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml
@@ -4,7 +4,7 @@
xmlns:views="clr-namespace:RightToAskClient.Maui.Views"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RightToAskClient.Maui.Views.Popups.HowToPublishPopup"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Size="350,600"
Color="Transparent">
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml.cs
index 10a945b4..001532c2 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/HowToPublishPopup.xaml.cs
@@ -19,8 +19,7 @@ public HowToPublishPopup()
private void Button_Clicked(object sender, EventArgs e)
{
- //TODO
- ////TODO: Dismiss("Dismissed");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml b/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml
index 88956488..d0be19b9 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml
@@ -7,7 +7,7 @@
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.Popups.OneButtonPopup"
WidthRequest="300"
- HeightRequest="320"
+ HeightRequest="320"
BackgroundColor="Transparent">
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml.cs
index 51d63566..5a0e9072 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/OneButtonPopup.xaml.cs
@@ -43,7 +43,7 @@ public OneButtonPopup(string title, string message, string buttonText, bool isIn
private void okButton_Clicked(object sender, EventArgs e)
{
- //TODO: Dismiss("Dismissed");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
private void initialize(string title, string message, string buttonText, bool isInfoPopup)
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml b/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml
index 5963487a..14924257 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml
@@ -4,20 +4,21 @@
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="RightToAskClient.Maui.Views.Popups.QuestionPublishedPopup"
xmlns:r="RightToAskClient.Maui.Resx"
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
WidthRequest="300"
HeightRequest="300"
BackgroundColor="Transparent">
-
-
-
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml.cs
index 059d0390..f2850d80 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/QuestionPublishedPopup.xaml.cs
@@ -21,13 +21,13 @@ public QuestionPublishedPopup()
private void WriteAnotherButtonClicked(object sender, EventArgs e)
{
QuestionViewModel.Instance.GoHome = false;
- //TODO: Dismiss("Dismissed");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
private void GoHomeButtonClicked(object sender, EventArgs e)
{
QuestionViewModel.Instance.GoHome = true;
- //TODO: Dismiss("Dismissed");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml b/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml
index 50c2b83d..8c4a83ed 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml
@@ -6,7 +6,7 @@
xmlns:viewmodels="clr-namespace:RightToAskClient.Maui.ViewModels"
x:DataType="viewmodels:ReadingPageViewModel"
x:Class="RightToAskClient.Maui.Views.Popups.ReadingPagePopup"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Size="300,300"
Color="Transparent">
@@ -17,10 +17,10 @@
BackgroundColor="{AppThemeBinding Light={StaticResource WindowBackgroundColor}, Dark={StaticResource WindowBackgroundColorDark}}">
-
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml.cs
index d5ac9062..bdf4c5a5 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/ReadingPagePopup.xaml.cs
@@ -21,7 +21,7 @@ public ReadingPagePopup(ReadingPageViewModel vm)
private void Button_Clicked(object sender, EventArgs e)
{
- //TODO: Dismiss("Dismissed");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml
index f5cc2652..60588a72 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml
@@ -2,8 +2,11 @@
@@ -14,22 +17,35 @@
HorizontalOptions="CenterAndExpand"
x:Name="MarkdownView"
Margin="16, 0">
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml.cs
index e1e65a06..b854cf73 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TermAndConditionPopup.xaml.cs
@@ -18,9 +18,12 @@ namespace RightToAskClient.Maui.Views.Popups
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class TermAndConditionPopup : Popup
{
+ //TODO: localisation of the terms text will need to be handled at a later point when localisation occurs as the hyperlinks are seperate
+ //and this was left as the MAUI conversion was a lengthy process
public TermAndConditionPopup()
{
InitializeComponent();
+
//TODO:
//var lightTheme = new LightMarkdownTheme();
//// TODO Xamarin.Forms.Device.GetNamedSize is not longer supported. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes
@@ -47,7 +50,14 @@ public TermAndConditionPopup()
//{
// AutomationProperties.SetHelpText(mdView, AppResources.TermsAndConditionsHelpTextIOS);
//}
-
+ //if (DeviceInfo.Platform == DevicePlatform.Android)
+ //{
+ // TermsText.Text = AppResources.TermsAndConditionsHelpTextAndroid;
+ //}
+ //else
+ //{
+ // TermsText.Text = AppResources.TermsAndConditionsHelpTextIOS;
+ //}
//mdView.SetOnAppTheme(Xam.Forms.Markdown.MarkdownView.ThemeProperty, lightTheme, darkTheme);
//MarkdownView.Children.Add(new ScrollView() { Content = mdView });
@@ -56,21 +66,21 @@ public TermAndConditionPopup()
private void okButton_Clicked(object sender, EventArgs e)
{
XamarinPreferences.shared.Set(Constants.ShowFirstTimeReadingPopup, false);
- //TODO: Dismiss("Dismissed");
+ Close();
}
- /*
- private async void PrivacyPolicy_OnTapped(object sender, EventArgs e)
- {
- await Browser.OpenAsync(Constants.DDPrivacyPolicyURL,
- BrowserLaunchMode.SystemPreferred);
- }
- private async void TermAndCondition_OnTapped(object sender, EventArgs e)
- {
- await Browser.OpenAsync(Constants.DDTermsAndConditionsURL,
- BrowserLaunchMode.SystemPreferred);
- }
- */
+ //private async void PrivacyPolicy_OnTapped(object sender, EventArgs e)
+ //{
+ // await Browser.OpenAsync(Constants.DDPrivacyPolicyURL,
+ // BrowserLaunchMode.SystemPreferred);
+ //}
+
+ //private async void TermAndCondition_OnTapped(object sender, EventArgs e)
+ //{
+ // await Browser.OpenAsync(Constants.DDTermsAndConditionsURL,
+ // BrowserLaunchMode.SystemPreferred);
+ //}
+
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TwoButtonPopup.xaml.cs b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TwoButtonPopup.xaml.cs
index dd0f6df9..692cc9dc 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/Popups/TwoButtonPopup.xaml.cs
+++ b/RightToAskClient/RightToAskClient.Maui/Views/Popups/TwoButtonPopup.xaml.cs
@@ -42,16 +42,16 @@ public bool HasApproved(object? value)
private void DismissPopup(object sender, EventArgs e)
{
- //TODO: Dismiss("cancel");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
private void CancelButtonClicked(object sender, EventArgs e)
{
- //TODO: Dismiss("cancel");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
private void ApproveButtonClicked(object sender, EventArgs e)
{
- //TODO: Dismiss("OK");
+ App.Current.MainPage.Navigation.PopModalAsync();
}
}
}
\ No newline at end of file
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/PublicPrivateLabel.xaml b/RightToAskClient/RightToAskClient.Maui/Views/PublicPrivateLabel.xaml
index 1aefa154..ed8c082f 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/PublicPrivateLabel.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/PublicPrivateLabel.xaml
@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="RightToAskClient.Maui.Views.PublicPrivateLabel"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:Name="This">
@@ -31,7 +31,7 @@
Style="{StaticResource PublicPrivateLabel}"
BackgroundColor="{AppThemeBinding Light=White, Dark=Black}">
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/QuestionAnswererPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/QuestionAnswererPage.xaml
index d3c03769..e3253e39 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/QuestionAnswererPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/QuestionAnswererPage.xaml
@@ -4,14 +4,14 @@
xmlns:vm="clr-namespace:RightToAskClient.Maui.ViewModels"
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="RightToAskClient.Maui.Views.QuestionAnswererPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Title="{StaticResource WhoShouldAnswerTitle}"
x:DataType="vm:QuestionViewModel">
-
+
@@ -22,8 +22,8 @@
-
-
@@ -43,8 +43,8 @@
-
-
@@ -64,8 +64,8 @@
-
-
@@ -87,8 +87,8 @@
-
-
@@ -109,11 +109,11 @@
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/QuestionAskerPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/QuestionAskerPage.xaml
index 0f27b903..7ec37913 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/QuestionAskerPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/QuestionAskerPage.xaml
@@ -5,16 +5,16 @@
xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:vm="clr-namespace:RightToAskClient.Maui.ViewModels"
x:Class="RightToAskClient.Maui.Views.QuestionAskerPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Title="{StaticResource RaiseQuestionTitle}"
x:DataType="vm:QuestionViewModel">
-
+
-
-
-
@@ -48,8 +48,8 @@
-
-
@@ -70,8 +70,8 @@
-
-
-
+
@@ -97,8 +97,8 @@
-
-
@@ -120,11 +120,11 @@
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/QuestionBackgroundPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/QuestionBackgroundPage.xaml
index 3093c779..eb33732d 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/QuestionBackgroundPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/QuestionBackgroundPage.xaml
@@ -5,7 +5,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RightToAskClient.Maui.Views.QuestionBackgroundPage"
x:DataType="vm:QuestionViewModel"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
Title="{StaticResource BackgroundPageTitle}">
@@ -13,7 +13,7 @@
-
+
@@ -49,8 +49,8 @@
Padding="16, 8"
Style="{StaticResource NormalButton}"
Command="{Binding ToHowAnsweredOptionPageCommand}"
- SemanticProperties.Hint="{StaticResource EditorProceedHint}"
- SemanticProperties.Description="{StaticResource EditorProceedButtonDescription}" />
+ SemanticProperties.Hint="{x:Static strings:AppResources.EditorProceedHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.EditorProceedButtonDescription}" />
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/QuestionDetailPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/QuestionDetailPage.xaml
index f317d98b..cd0d82a8 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/QuestionDetailPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/QuestionDetailPage.xaml
@@ -11,15 +11,15 @@
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
xmlns:system="clr-namespace:System;assembly=netstandard"
x:Class="RightToAskClient.Maui.Views.QuestionDetailPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="vm:QuestionViewModel">
-
-
+
+ IconImageSource="help_75.png" />
@@ -38,17 +38,17 @@
HorizontalOptions="Start"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{StaticResource QuestionFrameThumbsUpAccessibilityName}"
- AutomationProperties.HelpText="{StaticResource QuestionFrameThumbsUpAccessibilityText}">
+ AutomationProperties.HelpText="{x:Static strings:AppResources.QuestionFrameThumbsUpAccessibilityText}">
-
+
-
+
@@ -62,17 +62,17 @@
HorizontalOptions="Start"
HeightRequest="{x:OnPlatform Android=27, iOS=44}"
AutomationProperties.IsInAccessibleTree="True" AutomationProperties.Name="{StaticResource QuestionFrameThumbsDownAccessibilityName}"
- AutomationProperties.HelpText="{StaticResource QuestionFrameThumbsDownAccessibilityText}">
+ AutomationProperties.HelpText="{x:Static strings:AppResources.QuestionFrameThumbsDownAccessibilityText}">
-
+
-
+
@@ -90,28 +90,28 @@
BackgroundColor="Transparent"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{StaticResource QuestionFrameFlagButtonAccessibilityName}"
- AutomationProperties.HelpText="{StaticResource QuestionFrameFlagButtonAccessibilityTextRed}" >
+ AutomationProperties.HelpText="{x:Static strings:AppResources.QuestionFrameFlagButtonAccessibilityTextRed}" >
-
+
-
+
-
+
-
+
@@ -123,10 +123,10 @@
-
+
-
+
-
+
-
+
-
+
@@ -161,7 +161,7 @@
-
+
-
+
@@ -191,19 +191,19 @@
-
-
+
+ SemanticProperties.Hint="{x:Static strings:AppResources.PublishQuestionButtonText}"
+ SemanticProperties.Description="{x:Static strings:AppResources.PublishQuestionButtonText}"/>
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/QuestionDisplayCard.xaml b/RightToAskClient/RightToAskClient.Maui/Views/QuestionDisplayCard.xaml
index 214a1acd..2845b957 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/QuestionDisplayCard.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/QuestionDisplayCard.xaml
@@ -7,7 +7,7 @@
xmlns:viewModels="clr-namespace:RightToAskClient.Maui.ViewModels;assembly=RightToAskClient.Maui"
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.QuestionDisplayCard"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="viewModels:QuestionDisplayCardViewModel">
@@ -48,19 +48,19 @@
HorizontalOptions="Start"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{StaticResource QuestionFrameThumbsUpAccessibilityName}"
- AutomationProperties.HelpText="{StaticResource QuestionFrameThumbsUpAccessibilityText}">
+ AutomationProperties.HelpText="{x:Static strings:AppResources.QuestionFrameThumbsUpAccessibilityText}">
+ Value="{AppThemeBinding Light=thumb_up_light.png, Dark=Images.thumb_up_dark.png }" />
+ Value="thumb_up_filled.png" />
@@ -78,19 +78,19 @@
IsBrightened="{Binding Question.AlreadyDownvoted}"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{StaticResource QuestionFrameThumbsDownAccessibilityName}"
- AutomationProperties.HelpText="{StaticResource QuestionFrameThumbsDownAccessibilityText}">
+ AutomationProperties.HelpText="{x:Static strings:AppResources.QuestionFrameThumbsDownAccessibilityText}">
+ Value="{AppThemeBinding Light=thumb_down_light.png, Dark=Images.thumb_down_dark.png }" />
+ Value="thumb_down_filled.png" />
@@ -101,35 +101,35 @@
Margin="0"
Padding="0"
TextColor="{AppThemeBinding Light={StaticResource TextColorGray}, Dark=White}" />
-
+
@@ -137,15 +137,15 @@
-
+
@@ -163,16 +163,16 @@
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
Padding="16">
-
-
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/ReadingPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/ReadingPage.xaml
index 731db4e5..b0b23e68 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/ReadingPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/ReadingPage.xaml
@@ -8,18 +8,18 @@
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.ReadingPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:Name="ReadingPageName"
Shell.FlyoutBehavior="Flyout"
Title="{Binding Title}"
x:DataType="vm:ReadingPageViewModel">
-
-
+ IconImageSource="help_75.png" />
@@ -73,13 +73,13 @@
Grid.Row="0"
Grid.Column="0">
+ SemanticProperties.Hint="{x:Static strings:AppResources.SearchButtonText}"
+ SemanticProperties.Description="{x:Static strings:AppResources.SearchButtonText}" />
-
@@ -100,11 +100,11 @@
HorizontalOptions="Center"
Grid.Row="0"
Grid.Column="2">
-
@@ -127,7 +127,7 @@
HorizontalOptions="FillAndExpand"
Grid.Row="0"
Grid.Column="0">
-
@@ -174,7 +174,7 @@
Padding="0, 100 ,0 ,0">
-
@@ -188,16 +188,16 @@
VerticalOptions="End"
HorizontalOptions="End"
Margin="10"
- Source="{helpers:ImageResource RightToAskClient.Images.edit.png}"
- WidthRequest="70"
- HeightRequest="70"
- CornerRadius="35"
+ Source="edit.png"
+ WidthRequest="110"
+ HeightRequest="110"
+ CornerRadius="30"
Padding="20"
Aspect="AspectFit"
BackgroundColor="{StaticResource Purple}"
Command="{Binding DraftCommand}"
- SemanticProperties.Hint="{StaticResource ReadingPageWriteHint}"
- SemanticProperties.Description="{StaticResource ReadingPageWriteDescription}" />
+ SemanticProperties.Hint="{x:Static strings:AppResources.ReadingPageWriteHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.ReadingPageWriteDescription}" />
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/RegisterAccountPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/RegisterAccountPage.xaml
index d7286227..5d821238 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/RegisterAccountPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/RegisterAccountPage.xaml
@@ -9,11 +9,11 @@
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.RegisterAccountPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="vm:RegistrationViewModel"
Title="{Binding Title}">
-
@@ -27,7 +27,7 @@
HorizontalOptions="Fill">
-
@@ -36,7 +36,7 @@
-
-
-
+
-
@@ -77,8 +77,8 @@
+ SemanticProperties.Hint="{x:Static strings:AppResources.BackHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.BackDescription}" />
@@ -135,10 +135,10 @@
VerticalOptions="End"
HorizontalOptions="Fill"
Padding="10">
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/SelectableListPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/SelectableListPage.xaml
index 3879e79f..086f480a 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/SelectableListPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/SelectableListPage.xaml
@@ -6,20 +6,20 @@
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
xmlns:controls="clr-namespace:RightToAskClient.Maui.Views.Controls;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.SelectableListPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="vm:SelectableListViewModel"
Title="{Binding TitleText}">
-
-
+ IconImageSource="home4.png"/>
+ IconImageSource="help_75.png"/>
-
+ SemanticProperties.Hint="{x:Static strings:AppResources.SearchButtonText}"
+ SemanticProperties.Description="{x:Static strings:AppResources.SearchButtonText}">
@@ -84,11 +84,11 @@
HorizontalOptions="Center"
Grid.Row="0"
Grid.Column="2">
-
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/SharingElectorateInfoPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/SharingElectorateInfoPage.xaml
index 080a5de6..635d84b8 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/SharingElectorateInfoPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/SharingElectorateInfoPage.xaml
@@ -8,12 +8,12 @@
xmlns:views="clr-namespace:RightToAskClient.Maui.Views;assembly=RightToAskClient.Maui"
xmlns:helpers="clr-namespace:RightToAskClient.Maui.Helpers;assembly=RightToAskClient.Maui"
x:Class="RightToAskClient.Maui.Views.SharingElectorateInfoPage"
-
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
x:DataType="viewModels:SharingElectorateInfoViewModel">
+ SemanticProperties.Hint="{x:Static strings:AppResources.BackHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.BackDescription}" />
-
-
@@ -58,10 +58,10 @@
VerticalOptions="End"
HorizontalOptions="Fill"
Padding="16">
-
@@ -15,18 +16,18 @@
-
-
@@ -35,19 +36,19 @@
Style="{StaticResource SuccessMessageBackgroundStyle}">
@@ -57,7 +58,7 @@
-
@@ -67,7 +68,7 @@
@@ -89,12 +90,12 @@
Margin="0,12,0,0">
-
+ SemanticProperties.Hint="{x:Static strings:AppResources.EditElectoratesButtonHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.EditElectoratesButtonDescription}"/>
diff --git a/RightToAskClient/RightToAskClient.Maui/Views/WriteQuestionPage.xaml b/RightToAskClient/RightToAskClient.Maui/Views/WriteQuestionPage.xaml
index 1e5b2d56..f31f5478 100644
--- a/RightToAskClient/RightToAskClient.Maui/Views/WriteQuestionPage.xaml
+++ b/RightToAskClient/RightToAskClient.Maui/Views/WriteQuestionPage.xaml
@@ -13,13 +13,14 @@
x:DataType="vm:WriteQuestionViewModel"
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
ios:Page.UseSafeArea="true"
+ xmlns:strings="clr-namespace:RightToAskClient.Maui.Resx"
SizeChanged="WriteQuestionPage_OnSizeChanged">
+ IconOverride="close.png"
+ SemanticProperties.Hint="{x:Static strings:AppResources.BackHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.BackDescription}" />
@@ -39,7 +40,7 @@
VerticalOptions="StartAndExpand"
HorizontalOptions="FillAndExpand"
IsVisible="{Binding ShowHeader}">
-
@@ -101,8 +102,8 @@
Unfocused="KeywordEntry_FocusedChange"
TextChanged="KeywordEntry_OnTextChanged"
- SemanticProperties.Hint="{StaticResource WriteQuestionEditorHint}"
- SemanticProperties.Description="{StaticResource WriteQuestionEditorDescription}"
+ SemanticProperties.Hint="{x:Static strings:AppResources.WriteQuestionEditorHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.WriteQuestionEditorDescription}"
Grid.Row="0"
Grid.Column="0"
Margin="0">
@@ -113,11 +114,11 @@
HorizontalOptions="Center"
Grid.Row="0"
Grid.Column="1">
-
@@ -128,8 +129,8 @@
+ SemanticProperties.Hint="{x:Static strings:AppResources.ReturnHomeHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.ReturnHomeButtonDescription}" />
+ SemanticProperties.Hint="{x:Static strings:AppResources.EditorProceedHint}"
+ SemanticProperties.Description="{x:Static strings:AppResources.EditorProceedButtonDescription}" />