diff --git a/TransactionMobile.Maui/App.xaml b/TransactionMobile.Maui/App.xaml
index fbd5a2fa..1918ee41 100644
--- a/TransactionMobile.Maui/App.xaml
+++ b/TransactionMobile.Maui/App.xaml
@@ -3,23 +3,6 @@
xmlns:local="clr-namespace:TransactionMobile.Maui"
x:Class="TransactionMobile.Maui.App">
-
-
- #512bdf
- White
-
-
-
-
-
-
+
diff --git a/TransactionMobile.Maui/Pages/LoginPage.xaml b/TransactionMobile.Maui/Pages/LoginPage.xaml
index e80bd498..b649956b 100644
--- a/TransactionMobile.Maui/Pages/LoginPage.xaml
+++ b/TransactionMobile.Maui/Pages/LoginPage.xaml
@@ -7,11 +7,49 @@
Shell.FlyoutItemIsVisible="False"
BackgroundColor="White">
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupFailedPage.xaml b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupFailedPage.xaml
index 9f307394..4c20e452 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupFailedPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupFailedPage.xaml
@@ -1,25 +1,24 @@
-
+
-
-
+ x:Class="TransactionMobile.Maui.MobileTopupFailedPage" Title="{Binding Title}"
+ Shell.NavBarIsVisible="False" BackgroundColor="White">
+
+
+
+
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml
index 388297f3..3233a298 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml
@@ -4,46 +4,58 @@
x:Class="TransactionMobile.Maui.MobileTopupPerformTopupPage"
xmlns:behaviors="clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui"
Title="{Binding Title}"
+ Shell.NavBarIsVisible="False"
BackgroundColor="White">
-
-
+
+
+
+
-
-
+
-
-
-
-
+
+
+
-
-
+
-
-
-
-
+
+
+
-
-
+
-
-
-
-
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml.cs b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml.cs
index 2032276e..80b887d7 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml.cs
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupPerformTopupPage.xaml.cs
@@ -13,7 +13,7 @@ public MobileTopupPerformTopupPage(MobileTopupPerformTopupPageViewModel vm)
BindingContext = vm;
vm.OnCustomerMobileNumberEntryCompleted = () =>
{
- if (this.TopupAmountEntry.IsEnabled)
+ if (this.TopupAmountEntry.IsReadOnly)
{
this.TopupAmountEntry.Focus();
}
@@ -37,7 +37,7 @@ protected override async void OnAppearing()
base.OnAppearing();
if (viewModel.TopupAmount > 0)
{
- this.TopupAmountEntry.IsEnabled = false;
+ this.TopupAmountEntry.IsReadOnly = true;
}
}
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml
index db0c6333..55b953bf 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml
@@ -3,9 +3,14 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TransactionMobile.Maui.MobileTopupSelectOperatorPage"
Title="{Binding Title}"
+ Shell.NavBarIsVisible="False"
BackgroundColor="White">
-
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml.cs b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml.cs
index f389a8c5..e8d732de 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml.cs
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectOperatorPage.xaml.cs
@@ -22,16 +22,7 @@ protected override async void OnAppearing()
private void LoadOperators(MobileTopupSelectOperatorPageViewModel viewModel)
{
- RowDefinitionCollection rowDefinitionCollection = new RowDefinitionCollection();
- for (Int32 i = 0; i < viewModel.Operators.Count; i++)
- {
- rowDefinitionCollection.Add(new RowDefinition
- {
- Height = 60
- });
- }
-
- this.OperatorGrid.RowDefinitions = rowDefinitionCollection;
+ this.OperatorList.Children.Clear();
Int32 rowCount = 0;
foreach (ContractOperatorModel modelOperator in viewModel.Operators)
@@ -42,7 +33,7 @@ private void LoadOperators(MobileTopupSelectOperatorPageViewModel viewModel)
HorizontalOptions = LayoutOptions.FillAndExpand,
AutomationId = modelOperator.OperatorName,
};
- //button.SetDynamicResource(VisualElement.StyleProperty, "MobileTopupButtonStyle");
+ button.SetDynamicResource(VisualElement.StyleProperty, "MobileTopupButtonStyle");
Binding commandParameter = new Binding()
{
Source = new ItemSelected(){
@@ -58,8 +49,8 @@ private void LoadOperators(MobileTopupSelectOperatorPageViewModel viewModel)
button.SetBinding(Button.CommandProperty, command);
button.SetBinding(Button.CommandParameterProperty, commandParameter);
-
- this.OperatorGrid.Add(button, 0, rowCount);
+
+ this.OperatorList.Children.Add(button);
rowCount++;
}
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml
index ac21a46b..d7045d3e 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml
@@ -3,9 +3,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TransactionMobile.Maui.MobileTopupSelectProductPage"
Title="{Binding Title}"
+ Shell.NavBarIsVisible="False"
BackgroundColor="White">
-
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml.cs b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml.cs
index 5d708707..b171b175 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml.cs
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSelectProductPage.xaml.cs
@@ -22,17 +22,8 @@ protected override async void OnAppearing()
private void LoadProducts(MobileTopupSelectProductPageViewModel viewModel)
{
- RowDefinitionCollection rowDefinitionCollection = new RowDefinitionCollection();
- for (Int32 i = 0; i < viewModel.Products.Count; i++)
- {
- rowDefinitionCollection.Add(new RowDefinition
- {
- Height = 60
- });
- }
-
- this.ProductsGrid.RowDefinitions = rowDefinitionCollection;
-
+ this.ProductsList.Clear();
+
Int32 rowCount = 0;
foreach (ContractProductModel modelProduct in viewModel.Products)
{
@@ -42,7 +33,7 @@ private void LoadProducts(MobileTopupSelectProductPageViewModel viewModel)
HorizontalOptions = LayoutOptions.FillAndExpand,
AutomationId = modelProduct.ProductDisplayText,
};
- //button.SetDynamicResource(VisualElement.StyleProperty, "MobileTopupButtonStyle");
+ button.SetDynamicResource(VisualElement.StyleProperty, "MobileTopupButtonStyle");
Binding commandParameter = new Binding()
{
@@ -61,7 +52,7 @@ private void LoadProducts(MobileTopupSelectProductPageViewModel viewModel)
button.SetBinding(Button.CommandProperty, command);
button.SetBinding(Button.CommandParameterProperty, commandParameter);
- this.ProductsGrid.Add(button, 0, rowCount);
+ this.ProductsList.Add(button);
rowCount++;
}
diff --git a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSuccessPage.xaml b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSuccessPage.xaml
index a5ebe7c3..762e89ff 100644
--- a/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSuccessPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/MobileTopup/MobileTopupSuccessPage.xaml
@@ -1,29 +1,24 @@
-
+
-
-
+ x:Class="TransactionMobile.Maui.MobileTopupSuccessPage" Title="{Binding Title}"
+ Shell.NavBarIsVisible="False" BackgroundColor="White">
+
+
+
+
-
-
+
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Pages/Transactions/TransactionsPage.xaml b/TransactionMobile.Maui/Pages/Transactions/TransactionsPage.xaml
index ca667b61..999d0abf 100644
--- a/TransactionMobile.Maui/Pages/Transactions/TransactionsPage.xaml
+++ b/TransactionMobile.Maui/Pages/Transactions/TransactionsPage.xaml
@@ -2,25 +2,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Resources/Images/loginimage.jpg b/TransactionMobile.Maui/Resources/Images/loginimage.jpg
new file mode 100644
index 00000000..94ed4b3b
Binary files /dev/null and b/TransactionMobile.Maui/Resources/Images/loginimage.jpg differ
diff --git a/TransactionMobile.Maui/Resources/Images/paymentfailure.svg b/TransactionMobile.Maui/Resources/Images/paymentfailure.svg
new file mode 100644
index 00000000..45eebe33
--- /dev/null
+++ b/TransactionMobile.Maui/Resources/Images/paymentfailure.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Resources/Images/paymentsuccess.svg b/TransactionMobile.Maui/Resources/Images/paymentsuccess.svg
new file mode 100644
index 00000000..ed4a68f8
--- /dev/null
+++ b/TransactionMobile.Maui/Resources/Images/paymentsuccess.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml b/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml
new file mode 100644
index 00000000..04d30ff7
--- /dev/null
+++ b/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml
@@ -0,0 +1,160 @@
+
+
+
+
+ #FFFFFF
+ #E5E9F0
+
+ #4267B2
+ #FFFFFF
+ #4267B2
+ #A0FFFFFF
+ #4267B2
+ #FFFFFF
+
+ #4267B2
+ #31C8E3
+ #E38C44
+ #5BE3B6
+ #E37188
+
+ #7ed321
+ #ff4a4a
+ #ff844a
+ #4acaff
+ MediumPurple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml.cs b/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml.cs
new file mode 100644
index 00000000..ba25c710
--- /dev/null
+++ b/TransactionMobile.Maui/Resources/Styles/LightTheme.xaml.cs
@@ -0,0 +1,11 @@
+using Microsoft.Maui.Controls;
+
+namespace TransactionMobile.Maui.Resources.Styles;
+
+public partial class LightTheme : ResourceDictionary
+{
+ public LightTheme()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/TransactionMobile.Maui/TransactionMobile.Maui.csproj b/TransactionMobile.Maui/TransactionMobile.Maui.csproj
index 8f50a881..be9e7912 100644
--- a/TransactionMobile.Maui/TransactionMobile.Maui.csproj
+++ b/TransactionMobile.Maui/TransactionMobile.Maui.csproj
@@ -101,6 +101,9 @@
VoucherSelectProductPage.xaml
+
+ LightTheme.xaml
+
@@ -162,6 +165,9 @@
MSBuild:Compile
+
+ MSBuild:Compile
+