diff --git a/MauiExpander/App.xaml b/MauiExpander/App.xaml new file mode 100644 index 0000000..649be62 --- /dev/null +++ b/MauiExpander/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/MauiExpander/App.xaml.cs b/MauiExpander/App.xaml.cs new file mode 100644 index 0000000..1c0d5ba --- /dev/null +++ b/MauiExpander/App.xaml.cs @@ -0,0 +1,12 @@ +namespace MauiExpander +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new MainPage(); + } + } +} diff --git a/MauiExpander/AppShell.xaml b/MauiExpander/AppShell.xaml new file mode 100644 index 0000000..14628f1 --- /dev/null +++ b/MauiExpander/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/MauiExpander/AppShell.xaml.cs b/MauiExpander/AppShell.xaml.cs new file mode 100644 index 0000000..a97a9dd --- /dev/null +++ b/MauiExpander/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace MauiExpander +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/MauiExpander/MauiExpander.csproj b/MauiExpander/MauiExpander.csproj new file mode 100644 index 0000000..dd1af79 --- /dev/null +++ b/MauiExpander/MauiExpander.csproj @@ -0,0 +1,67 @@ + + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + + + + Exe + MauiExpander + true + true + enable + enable + + + MauiExpander + + + com.companyname.mauiexpander + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MauiExpander/MauiExpander.sln b/MauiExpander/MauiExpander.sln new file mode 100644 index 0000000..54c8ac7 --- /dev/null +++ b/MauiExpander/MauiExpander.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34309.116 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MauiExpander", "MauiExpander.csproj", "{C0395EF7-B55C-42B0-A6C6-EB72275A82CB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Release|Any CPU.Build.0 = Release|Any CPU + {C0395EF7-B55C-42B0-A6C6-EB72275A82CB}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {173F538E-0CAC-4F8B-9FA9-6CAE5DA68E9A} + EndGlobalSection +EndGlobal diff --git a/MauiExpander/MauiProgram.cs b/MauiExpander/MauiProgram.cs new file mode 100644 index 0000000..ee20ae3 --- /dev/null +++ b/MauiExpander/MauiProgram.cs @@ -0,0 +1,26 @@ +using Microsoft.Extensions.Logging; +using Syncfusion.Maui.Core.Hosting; + +namespace MauiExpander +{ + public static class MauiProgram + { + public static MauiApp CreateMauiApp() + { + var builder = MauiApp.CreateBuilder(); + builder + .UseMauiApp() + .ConfigureFonts(fonts => + { + fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + }); + builder.ConfigureSyncfusionCore(); +#if DEBUG + builder.Logging.AddDebug(); +#endif + + return builder.Build(); + } + } +} diff --git a/MauiExpander/Model/InboxInfo.cs b/MauiExpander/Model/InboxInfo.cs new file mode 100644 index 0000000..0b34c17 --- /dev/null +++ b/MauiExpander/Model/InboxInfo.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MauiExpander +{ + public class InboxInfo : INotifyPropertyChanged + { + private string title; + private string subject; + private string desc; + private string date; + private bool isExpanded; + private FontAttributes fontStyle = FontAttributes.Bold; + + + public InboxInfo() + { + + } + + public string Title + { + get { return title; } + set + { + title = value; + OnPropertyChanged("Title"); + } + } + + public string Subject + { + get + { + return subject; + } + + set + { + subject = value; + OnPropertyChanged("Subject"); + } + } + + public string Description + { + get + { + return desc; + } + + set + { + desc = value; + OnPropertyChanged("Description"); + } + } + + public string Date + { + get + { + return date; + } + + set + { + date = value; + OnPropertyChanged("Date"); + } + } + + public FontAttributes FontStyle + { + get + { + return fontStyle; + } + set + { + fontStyle = value; + OnPropertyChanged("FontStyle"); + } + } + + public bool IsExpanded + { + get + { + return isExpanded; + } + set + { + isExpanded = value; + OnPropertyChanged("IsExpanded"); + } + } + + public event PropertyChangedEventHandler PropertyChanged; + + public void OnPropertyChanged(string name) + { + if (this.PropertyChanged != null) + this.PropertyChanged(this, new PropertyChangedEventArgs(name)); + } + + } +} diff --git a/MauiExpander/Model/InboxInfoRepository.cs b/MauiExpander/Model/InboxInfoRepository.cs new file mode 100644 index 0000000..54c2c2f --- /dev/null +++ b/MauiExpander/Model/InboxInfoRepository.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MauiExpander +{ + public class InboxInfoRepository + { + private Random random = new Random(); + + public InboxInfoRepository() + { + + } + + internal ObservableCollection GetInboxInfo() + { + var inboxInfo = new ObservableCollection(); + for (int i = 0; i < Subject.Count(); i++) + { + var record = new InboxInfo() + { + Title = Title[i], + Subject = Subject[i], + Description = Descriptions[i], + Date = Month[i] + " " + (i + 8).ToString(), + }; + inboxInfo.Add(record); + } + return inboxInfo; + } + + string[] Title = new string[] + { + "James Landon", + "Daniel Caden", + "Holly Steve", + "Jacob Oscar", + "Fiona Michael", + "Ralph Jennifer", + "Nicholas Ryan", + "Liam Connor", + "Benjamin Alexander", + "Brenda Kyle", + "Liz Torrey", + "Nathan Taylor", + "Dominic Thomas", + "Riley Sean", + "Xavier Bryce" + + }; + + string[] Month = new string[] + { + "Jan", + "Jan", + "Feb", + "Mar", + "Mar", + "Apr", + "May", + "May", + "May", + "June", + "July", + "Aug", + "Aug", + "Sep", + "Sep" + }; + + string[] Subject = new string[] { + "Happy birthday to an amazing employee!", + "Like a vintage auto, your value increases...", + "Happy Anniversary! Happy Anniversary!", + "We wish you an amazing year with accomplishment...", + "No one could do a better job than...", + "GET WELL SOON!!", + "A cheery Christmas hold lots of happiness for you!", + "BOO!!! Happy Halloween! Happy Halloween!", + "Happy Turkey Day!!", + "Wishing you Happy St Pat's Day!", + "Congratulations on the move!", + "Enjoy the new greener pastures!", + "Happy Thanksgiving Day!", + "Never doubt yourself. You’re always...", + "The warmest wishes to a great member of our team...", + }; + + string[] Descriptions = new string[] { + "Wishing you great achievements in this career, And I hope that you have a great day today!", + "Happy birthday to one of the best and most loyal employees ever!", + "Congrats! May your life continue to be filled with love, laughter and happiness.", + "We wish you an amazing year with accomplishment of the great goals that you have set!", + "No one could do a better job than the job you do. We thank you for sticking with us!", + "Card messages aren't my thing. Get well soon!", + "Wishing you a happy Christmas. May it be all that you hope it will be! All the best", + "Wishing you a killer Halloween, Don't forget to give us treat or else..", + "Happy Turkey Day!. Don't forget to give thanks for being so blessed.", + "It's all green which means its all good! HAPPY ST PAT'S", + "Congratulations! May you find great happiness at your new address.", + "Good luck with the new job and your career aspirations. All the best", + "May you enjoy this special day. Happy Thanksgiving to you and your whole family!", + "Never doubt yourself. You’re always the best! Just continue to be like that!", + "Warmest wishes! May your special day be full of good emotions, fun and cheer!" + }; + } +} + diff --git a/MauiExpander/Platforms/Android/AndroidManifest.xml b/MauiExpander/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..e9937ad --- /dev/null +++ b/MauiExpander/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MauiExpander/Platforms/Android/MainActivity.cs b/MauiExpander/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..3592033 --- /dev/null +++ b/MauiExpander/Platforms/Android/MainActivity.cs @@ -0,0 +1,11 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace MauiExpander +{ + [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] + public class MainActivity : MauiAppCompatActivity + { + } +} diff --git a/MauiExpander/Platforms/Android/MainApplication.cs b/MauiExpander/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..87a653e --- /dev/null +++ b/MauiExpander/Platforms/Android/MainApplication.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Runtime; + +namespace MauiExpander +{ + [Application] + public class MainApplication : MauiApplication + { + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/MauiExpander/Platforms/Android/Resources/values/colors.xml b/MauiExpander/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..c04d749 --- /dev/null +++ b/MauiExpander/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,6 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + \ No newline at end of file diff --git a/MauiExpander/Platforms/MacCatalyst/AppDelegate.cs b/MauiExpander/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..134022e --- /dev/null +++ b/MauiExpander/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace MauiExpander +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/MauiExpander/Platforms/MacCatalyst/Entitlements.plist b/MauiExpander/Platforms/MacCatalyst/Entitlements.plist new file mode 100644 index 0000000..de4adc9 --- /dev/null +++ b/MauiExpander/Platforms/MacCatalyst/Entitlements.plist @@ -0,0 +1,14 @@ + + + + + + + com.apple.security.app-sandbox + + + com.apple.security.network.client + + + + diff --git a/MauiExpander/Platforms/MacCatalyst/Info.plist b/MauiExpander/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..7268977 --- /dev/null +++ b/MauiExpander/Platforms/MacCatalyst/Info.plist @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + UIDeviceFamily + + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/MauiExpander/Platforms/MacCatalyst/Program.cs b/MauiExpander/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..9bd1ab2 --- /dev/null +++ b/MauiExpander/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace MauiExpander +{ + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} diff --git a/MauiExpander/Platforms/Tizen/Main.cs b/MauiExpander/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..b725d47 --- /dev/null +++ b/MauiExpander/Platforms/Tizen/Main.cs @@ -0,0 +1,17 @@ +using Microsoft.Maui; +using Microsoft.Maui.Hosting; +using System; + +namespace MauiExpander +{ + internal class Program : MauiApplication + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } + } +} diff --git a/MauiExpander/Platforms/Tizen/tizen-manifest.xml b/MauiExpander/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..4420c90 --- /dev/null +++ b/MauiExpander/Platforms/Tizen/tizen-manifest.xml @@ -0,0 +1,15 @@ + + + + + + maui-appicon-placeholder + + + + + http://tizen.org/privilege/internet + + + + \ No newline at end of file diff --git a/MauiExpander/Platforms/Windows/App.xaml b/MauiExpander/Platforms/Windows/App.xaml new file mode 100644 index 0000000..9db87fa --- /dev/null +++ b/MauiExpander/Platforms/Windows/App.xaml @@ -0,0 +1,8 @@ + + + diff --git a/MauiExpander/Platforms/Windows/App.xaml.cs b/MauiExpander/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..e5c1234 --- /dev/null +++ b/MauiExpander/Platforms/Windows/App.xaml.cs @@ -0,0 +1,25 @@ +using Microsoft.UI.Xaml; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace MauiExpander.WinUI +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + public partial class App : MauiWinUIApplication + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } + +} diff --git a/MauiExpander/Platforms/Windows/Package.appxmanifest b/MauiExpander/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..4ab6613 --- /dev/null +++ b/MauiExpander/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,46 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MauiExpander/Platforms/Windows/app.manifest b/MauiExpander/Platforms/Windows/app.manifest new file mode 100644 index 0000000..38f15f2 --- /dev/null +++ b/MauiExpander/Platforms/Windows/app.manifest @@ -0,0 +1,15 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + diff --git a/MauiExpander/Platforms/iOS/AppDelegate.cs b/MauiExpander/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..134022e --- /dev/null +++ b/MauiExpander/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace MauiExpander +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/MauiExpander/Platforms/iOS/Info.plist b/MauiExpander/Platforms/iOS/Info.plist new file mode 100644 index 0000000..0004a4f --- /dev/null +++ b/MauiExpander/Platforms/iOS/Info.plist @@ -0,0 +1,32 @@ + + + + + LSRequiresIPhoneOS + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/MauiExpander/Platforms/iOS/Program.cs b/MauiExpander/Platforms/iOS/Program.cs new file mode 100644 index 0000000..9bd1ab2 --- /dev/null +++ b/MauiExpander/Platforms/iOS/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace MauiExpander +{ + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} diff --git a/MauiExpander/Properties/launchSettings.json b/MauiExpander/Properties/launchSettings.json new file mode 100644 index 0000000..edf8aad --- /dev/null +++ b/MauiExpander/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} \ No newline at end of file diff --git a/MauiExpander/Resources/AppIcon/appicon.svg b/MauiExpander/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..9d63b65 --- /dev/null +++ b/MauiExpander/Resources/AppIcon/appicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/MauiExpander/Resources/AppIcon/appiconfg.svg b/MauiExpander/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/MauiExpander/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/MauiExpander/Resources/Fonts/OpenSans-Regular.ttf b/MauiExpander/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..9ab655d Binary files /dev/null and b/MauiExpander/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/MauiExpander/Resources/Fonts/OpenSans-Semibold.ttf b/MauiExpander/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..2b7468e Binary files /dev/null and b/MauiExpander/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/MauiExpander/Resources/Images/dotnet_bot.png b/MauiExpander/Resources/Images/dotnet_bot.png new file mode 100644 index 0000000..f93ce02 Binary files /dev/null and b/MauiExpander/Resources/Images/dotnet_bot.png differ diff --git a/MauiExpander/Resources/Raw/AboutAssets.txt b/MauiExpander/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..15d6244 --- /dev/null +++ b/MauiExpander/Resources/Raw/AboutAssets.txt @@ -0,0 +1,15 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories). Deployment of the asset to your application +is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. + + + +These files will be deployed with you package and will be accessible using Essentials: + + async Task LoadMauiAsset() + { + using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); + using var reader = new StreamReader(stream); + + var contents = reader.ReadToEnd(); + } diff --git a/MauiExpander/Resources/Splash/splash.svg b/MauiExpander/Resources/Splash/splash.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/MauiExpander/Resources/Splash/splash.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/MauiExpander/Resources/Styles/Colors.xaml b/MauiExpander/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..30307a5 --- /dev/null +++ b/MauiExpander/Resources/Styles/Colors.xaml @@ -0,0 +1,45 @@ + + + + + + + #512BD4 + #ac99ea + #242424 + #DFD8F7 + #9880e5 + #2B0B98 + + White + Black + #D600AA + #190649 + #1f1f1f + + #E1E1E1 + #C8C8C8 + #ACACAC + #919191 + #6E6E6E + #404040 + #212121 + #141414 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MauiExpander/Resources/Styles/Styles.xaml b/MauiExpander/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..e0d36bb --- /dev/null +++ b/MauiExpander/Resources/Styles/Styles.xaml @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MauiExpander/View/MainPage.xaml b/MauiExpander/View/MainPage.xaml new file mode 100644 index 0000000..4054c26 --- /dev/null +++ b/MauiExpander/View/MainPage.xaml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +