diff --git a/ViewsApp/ViewsApp.sln b/ViewsApp/ViewsApp.sln new file mode 100644 index 0000000..7fe3c67 --- /dev/null +++ b/ViewsApp/ViewsApp.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31611.283 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ViewsApp", "ViewsApp\ViewsApp.csproj", "{ED56AAF4-0B15-453C-9AED-775E967658A1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Release|Any CPU.Build.0 = Release|Any CPU + {ED56AAF4-0B15-453C-9AED-775E967658A1}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572} + EndGlobalSection +EndGlobal diff --git a/ViewsApp/ViewsApp/App.xaml b/ViewsApp/ViewsApp/App.xaml new file mode 100644 index 0000000..ae2071d --- /dev/null +++ b/ViewsApp/ViewsApp/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/App.xaml.cs b/ViewsApp/ViewsApp/App.xaml.cs new file mode 100644 index 0000000..1654862 --- /dev/null +++ b/ViewsApp/ViewsApp/App.xaml.cs @@ -0,0 +1,11 @@ +namespace ViewsApp; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/ViewsApp/ViewsApp/AppShell.xaml b/ViewsApp/ViewsApp/AppShell.xaml new file mode 100644 index 0000000..d0c1636 --- /dev/null +++ b/ViewsApp/ViewsApp/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/ViewsApp/ViewsApp/AppShell.xaml.cs b/ViewsApp/ViewsApp/AppShell.xaml.cs new file mode 100644 index 0000000..ccd5d18 --- /dev/null +++ b/ViewsApp/ViewsApp/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace ViewsApp; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/ViewsApp/ViewsApp/MainPage.xaml b/ViewsApp/ViewsApp/MainPage.xaml new file mode 100644 index 0000000..cd71f6e --- /dev/null +++ b/ViewsApp/ViewsApp/MainPage.xaml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/MainPage.xaml.cs b/ViewsApp/ViewsApp/MainPage.xaml.cs new file mode 100644 index 0000000..36431c9 --- /dev/null +++ b/ViewsApp/ViewsApp/MainPage.xaml.cs @@ -0,0 +1,12 @@ +namespace ViewsApp; + +public partial class MainPage : ContentPage +{ + + public MainPage() + { + InitializeComponent(); + } + +} + diff --git a/ViewsApp/ViewsApp/MauiProgram.cs b/ViewsApp/ViewsApp/MauiProgram.cs new file mode 100644 index 0000000..e0903da --- /dev/null +++ b/ViewsApp/ViewsApp/MauiProgram.cs @@ -0,0 +1,18 @@ +namespace ViewsApp; + +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"); + }); + + return builder.Build(); + } +} diff --git a/ViewsApp/ViewsApp/Platforms/Android/AndroidManifest.xml b/ViewsApp/ViewsApp/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..e9937ad --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Platforms/Android/MainActivity.cs b/ViewsApp/ViewsApp/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..2c92631 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Android/MainActivity.cs @@ -0,0 +1,10 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace ViewsApp; + +[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/ViewsApp/ViewsApp/Platforms/Android/MainApplication.cs b/ViewsApp/ViewsApp/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..53dd4cc --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Android/MainApplication.cs @@ -0,0 +1,15 @@ +using Android.App; +using Android.Runtime; + +namespace ViewsApp; + +[Application] +public class MainApplication : MauiApplication +{ + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} diff --git a/ViewsApp/ViewsApp/Platforms/Android/Resources/values/colors.xml b/ViewsApp/ViewsApp/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..c04d749 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,6 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Platforms/MacCatalyst/AppDelegate.cs b/ViewsApp/ViewsApp/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..d111857 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,9 @@ +using Foundation; + +namespace ViewsApp; + +[Register("AppDelegate")] +public class AppDelegate : MauiUIApplicationDelegate +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} diff --git a/ViewsApp/ViewsApp/Platforms/MacCatalyst/Info.plist b/ViewsApp/ViewsApp/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..c96dd0a --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/MacCatalyst/Info.plist @@ -0,0 +1,30 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/ViewsApp/ViewsApp/Platforms/MacCatalyst/Program.cs b/ViewsApp/ViewsApp/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..1b3b980 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,15 @@ +using ObjCRuntime; +using UIKit; + +namespace ViewsApp; + +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/ViewsApp/ViewsApp/Platforms/Tizen/Main.cs b/ViewsApp/ViewsApp/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..c327b35 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Tizen/Main.cs @@ -0,0 +1,16 @@ +using System; +using Microsoft.Maui; +using Microsoft.Maui.Hosting; + +namespace ViewsApp; + +class Program : MauiApplication +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } +} diff --git a/ViewsApp/ViewsApp/Platforms/Tizen/tizen-manifest.xml b/ViewsApp/ViewsApp/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..59f30aa --- /dev/null +++ b/ViewsApp/ViewsApp/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/ViewsApp/ViewsApp/Platforms/Windows/App.xaml b/ViewsApp/ViewsApp/Platforms/Windows/App.xaml new file mode 100644 index 0000000..4cf9baa --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Windows/App.xaml @@ -0,0 +1,8 @@ + + + diff --git a/ViewsApp/ViewsApp/Platforms/Windows/App.xaml.cs b/ViewsApp/ViewsApp/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..30a1a72 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Windows/App.xaml.cs @@ -0,0 +1,24 @@ +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 ViewsApp.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/ViewsApp/ViewsApp/Platforms/Windows/Package.appxmanifest b/ViewsApp/ViewsApp/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..4a284dd --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,46 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/Platforms/Windows/app.manifest b/ViewsApp/ViewsApp/Platforms/Windows/app.manifest new file mode 100644 index 0000000..6552174 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/Windows/app.manifest @@ -0,0 +1,15 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + diff --git a/ViewsApp/ViewsApp/Platforms/iOS/AppDelegate.cs b/ViewsApp/ViewsApp/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..d111857 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,9 @@ +using Foundation; + +namespace ViewsApp; + +[Register("AppDelegate")] +public class AppDelegate : MauiUIApplicationDelegate +{ + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +} diff --git a/ViewsApp/ViewsApp/Platforms/iOS/Info.plist b/ViewsApp/ViewsApp/Platforms/iOS/Info.plist new file mode 100644 index 0000000..0004a4f --- /dev/null +++ b/ViewsApp/ViewsApp/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/ViewsApp/ViewsApp/Platforms/iOS/Program.cs b/ViewsApp/ViewsApp/Platforms/iOS/Program.cs new file mode 100644 index 0000000..1b3b980 --- /dev/null +++ b/ViewsApp/ViewsApp/Platforms/iOS/Program.cs @@ -0,0 +1,15 @@ +using ObjCRuntime; +using UIKit; + +namespace ViewsApp; + +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/ViewsApp/ViewsApp/Properties/launchSettings.json b/ViewsApp/ViewsApp/Properties/launchSettings.json new file mode 100644 index 0000000..edf8aad --- /dev/null +++ b/ViewsApp/ViewsApp/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Resources/AppIcon/appicon.svg b/ViewsApp/ViewsApp/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..9d63b65 --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/AppIcon/appicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Resources/AppIcon/appiconfg.svg b/ViewsApp/ViewsApp/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Regular.ttf b/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..a49f11d Binary files /dev/null and b/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Semibold.ttf b/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..23911e4 Binary files /dev/null and b/ViewsApp/ViewsApp/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/ViewsApp/ViewsApp/Resources/Images/dotnet_bot.svg b/ViewsApp/ViewsApp/Resources/Images/dotnet_bot.svg new file mode 100644 index 0000000..abfaff2 --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/Images/dotnet_bot.svg @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/Resources/Images/etoile.png b/ViewsApp/ViewsApp/Resources/Images/etoile.png new file mode 100644 index 0000000..a4176e5 Binary files /dev/null and b/ViewsApp/ViewsApp/Resources/Images/etoile.png differ diff --git a/ViewsApp/ViewsApp/Resources/Images/logo.png b/ViewsApp/ViewsApp/Resources/Images/logo.png new file mode 100644 index 0000000..7af3d73 Binary files /dev/null and b/ViewsApp/ViewsApp/Resources/Images/logo.png differ diff --git a/ViewsApp/ViewsApp/Resources/Images/tri.png b/ViewsApp/ViewsApp/Resources/Images/tri.png new file mode 100644 index 0000000..ed3f8e1 Binary files /dev/null and b/ViewsApp/ViewsApp/Resources/Images/tri.png differ diff --git a/ViewsApp/ViewsApp/Resources/Raw/AboutAssets.txt b/ViewsApp/ViewsApp/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..15d6244 --- /dev/null +++ b/ViewsApp/ViewsApp/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/ViewsApp/ViewsApp/Resources/Splash/splash.svg b/ViewsApp/ViewsApp/Resources/Splash/splash.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/Splash/splash.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Resources/Styles/Colors.xaml b/ViewsApp/ViewsApp/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..245758b --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/Styles/Colors.xaml @@ -0,0 +1,44 @@ + + + + + #512BD4 + #DFD8F7 + #2B0B98 + White + Black + #E1E1E1 + #C8C8C8 + #ACACAC + #919191 + #6E6E6E + #404040 + #212121 + #141414 + + + + + + + + + + + + + + + #F7B548 + #FFD590 + #FFE5B9 + #28C2D1 + #7BDDEF + #C3F2F4 + #3E8EED + #72ACF1 + #A7CBF6 + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Resources/Styles/Styles.xaml b/ViewsApp/ViewsApp/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..1ec9d55 --- /dev/null +++ b/ViewsApp/ViewsApp/Resources/Styles/Styles.xaml @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ViewsApp/ViewsApp/Views/NewPage1.xaml b/ViewsApp/ViewsApp/Views/NewPage1.xaml new file mode 100644 index 0000000..54ba23f --- /dev/null +++ b/ViewsApp/ViewsApp/Views/NewPage1.xaml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs b/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs new file mode 100644 index 0000000..ebd2f4d --- /dev/null +++ b/ViewsApp/ViewsApp/Views/NewPage1.xaml.cs @@ -0,0 +1,9 @@ +namespace ViewsApp.Views; + +public partial class NewPage1 : ContentPage +{ + public NewPage1() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/ViewsApp/ViewsApp/ViewsApp.csproj b/ViewsApp/ViewsApp/ViewsApp.csproj new file mode 100644 index 0000000..1cb6d58 --- /dev/null +++ b/ViewsApp/ViewsApp/ViewsApp.csproj @@ -0,0 +1,51 @@ + + + + net6.0-android;net6.0-ios;net6.0-maccatalyst + $(TargetFrameworks);net6.0-windows10.0.19041.0 + + + Exe + ViewsApp + true + true + enable + + + ViewsApp + + + com.companyname.viewsapp + 295ba9c5-f6fe-4439-8d4e-4847cfe92086 + + + 1.0 + 1 + + 14.2 + 14.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + +