diff --git a/MauiProject/App.xaml.cs b/MauiProject/App.xaml.cs
index 71ba8db..921f801 100644
--- a/MauiProject/App.xaml.cs
+++ b/MauiProject/App.xaml.cs
@@ -6,6 +6,9 @@ public App()
{
InitializeComponent();
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NjA0NzI4QDMyMzAyZTMxMmUzMElnd0owNjFveXpldXBBVW9aQ3BkR2VGQUZRK2doVFZPak92T2VzNm5MR1k9");
- MainPage = new AppShell();
}
+ protected override Window CreateWindow(IActivationState? activationState)
+ {
+ return new Window(new MainPage());
+ }
}
diff --git a/MauiProject/AppShell.xaml b/MauiProject/AppShell.xaml
deleted file mode 100644
index 457693b..0000000
--- a/MauiProject/AppShell.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
diff --git a/MauiProject/AppShell.xaml.cs b/MauiProject/AppShell.xaml.cs
deleted file mode 100644
index ae6151c..0000000
--- a/MauiProject/AppShell.xaml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace MauiProject;
-
-public partial class AppShell : Shell
-{
- public AppShell()
- {
- InitializeComponent();
- }
-}
diff --git a/MauiProject/EmployeeInfo.cs b/MauiProject/EmployeeInfo.cs
index b9682a1..f64aea4 100644
--- a/MauiProject/EmployeeInfo.cs
+++ b/MauiProject/EmployeeInfo.cs
@@ -10,14 +10,14 @@ namespace MauiProject
public class EmployeeInfo
{
[Required(AllowEmptyStrings = false, ErrorMessage = "First Name should not be empty")]
- public string FirstName { get; set; }
- public string MiddleName { get; set; }
- public string LastName { get; set; }
+ public string FirstName { get; set; } = string.Empty;
+ public string MiddleName { get; set; } = string.Empty;
+ public string LastName { get; set; } = string.Empty;
[StringLength(10, ErrorMessage = "Contact number should not exceed 10 digits")]
- public string ContactNumber { get; set; }
- public string Email { get; set; }
+ public string ContactNumber { get; set; } = string.Empty;
+ public string Email { get; set; } = string.Empty;
[DataType(DataType.MultilineText)]
- public string Address { get; set; }
+ public string Address { get; set; } = string.Empty;
public DateTime? DateJoined { get; set; }
public bool Confirmed { get; set; }
}
diff --git a/MauiProject/MainPage.xaml b/MauiProject/MainPage.xaml
index 23bbbc0..1022104 100644
--- a/MauiProject/MainPage.xaml
+++ b/MauiProject/MainPage.xaml
@@ -9,7 +9,9 @@
-
diff --git a/MauiProject/MauiProject.csproj b/MauiProject/MauiProject.csproj
index fd22fea..321d2c4 100644
--- a/MauiProject/MauiProject.csproj
+++ b/MauiProject/MauiProject.csproj
@@ -1,15 +1,16 @@
- net7.0-android;
- $(TargetFrameworks);net7.0-windows10.0.19041.0
+ net9.0-android;
+ $(TargetFrameworks);net9.0-windows10.0.19041.0
-
+
Exe
MauiProject
true
true
enable
+ enable
MauiProject
@@ -49,8 +50,9 @@
-
-
+
+
+
diff --git a/MauiProject/MauiProject.csproj.user b/MauiProject/MauiProject.csproj.user
index 29606d7..fc2823d 100644
--- a/MauiProject/MauiProject.csproj.user
+++ b/MauiProject/MauiProject.csproj.user
@@ -2,9 +2,12 @@
False
- net7.0-android
- Pixel 5 - API 32 (Android 12.1 - API 32)
+ net9.0-windows10.0.19041.0
+ Windows Machine
Emulator
- pixel_5_-_api_32
+ pixel_5_-_api_34
+
+
+ ProjectDebugger
\ No newline at end of file