├── .github └── FUNDING.yml ├── .gitignore ├── Artifacts ├── Batch.zip └── PowerShell.zip ├── LICENSE ├── README.md ├── global.json ├── images ├── add-new-item.png ├── dotnetmaui-all-in-one-app-project-options.png ├── dotnetmaui-all-in-one-project-template-pinned.png ├── dotnetmaui-class-library-project-options.png ├── dotnetmaui-generic-item-popup.png ├── maui-project-templates.png └── vs-manage-extensions.png └── src ├── Extensions ├── MauiItemTemplates │ ├── MauiItemTemplates.sln │ └── MauiItemTemplates │ │ ├── CodeSnippets │ │ ├── horizontalStack.snippet │ │ ├── stack.snippet │ │ └── verticalStack.snippet │ │ ├── ItemTemplates │ │ ├── MauiPageCS.zip │ │ ├── MauiPageXaml.zip │ │ ├── MauiResDict.zip │ │ ├── MauiShell.zip │ │ ├── MauiViewCS.zip │ │ └── MauiViewXaml.zip │ │ ├── MauiItemTemplates.csproj │ │ ├── ProjectTemplates │ │ └── MauiClassLib.zip │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── Resources │ │ └── Icon.png │ │ ├── license.txt │ │ ├── readme.rtf │ │ ├── release-notes.txt │ │ ├── source.extension.cs │ │ └── source.extension.vsixmanifest └── MauiTemplates │ ├── MauiTemplates.sln │ └── MauiTemplates │ ├── Assets │ └── VijayAnand.MauiTemplates.7.10.0.nupkg │ ├── Command.cs │ ├── CommandOfT.cs │ ├── CustomActionWizard.cs │ ├── Extensions │ └── StringExtensions.cs │ ├── ItemTemplates │ ├── CometPageCS.zip │ ├── MauiBlazorWebView.zip │ ├── MauiBlazorWebViewCS.zip │ ├── MauiHandler.zip │ ├── MauiHandlerReg.zip │ ├── MauiItem.zip │ ├── MauiItemCS.zip │ ├── MauiPage.zip │ ├── MauiPageCS.zip │ ├── MauiPageCSWithViewModel.zip │ ├── MauiPageRazor.zip │ ├── MauiPageWithViewModel.zip │ ├── MauiRenderer.zip │ ├── MauiRendererReg.zip │ ├── MauiResDict.zip │ ├── MauiResDictXaml.zip │ ├── MauiShell.zip │ ├── MauiShellCS.zip │ ├── MauiShellRazor.zip │ ├── MauiView.zip │ ├── MauiViewCS.zip │ ├── MauiViewRazor.zip │ └── PartialClass.zip │ ├── MauiCSharpSnippets.pkgdef │ ├── MauiSnippets │ ├── CSharp │ │ ├── asyncEventHandler.snippet │ │ ├── asyncMethod.snippet │ │ ├── asyncRelayCommand.snippet │ │ ├── attachedProperty.snippet │ │ ├── bindableProperty.snippet │ │ ├── cometProperty.snippet │ │ ├── crossPlatform.snippet │ │ ├── eventHandler.snippet │ │ ├── markupExtnMethod.snippet │ │ ├── method.snippet │ │ ├── observableProperty.snippet │ │ ├── record.snippet │ │ ├── recordStruct.snippet │ │ ├── relayCommand.snippet │ │ └── viewModelProperty.snippet │ └── Xaml │ │ ├── blazorWebView.snippet │ │ ├── color.snippet │ │ ├── dragGestureRecognizer.snippet │ │ ├── dropGestureRecognizer.snippet │ │ ├── flexLayout.snippet │ │ ├── gestureRecognizers.snippet │ │ ├── gridLayout.snippet │ │ ├── horizontalStack.snippet │ │ ├── mauiBlazor.snippet │ │ ├── panGestureRecognizer.snippet │ │ ├── pinchGestureRecognizer.snippet │ │ ├── pointerGestureRecognizer.snippet │ │ ├── resources.snippet │ │ ├── stackLayout.snippet │ │ ├── style.snippet │ │ ├── swipeGestureRecognizer.snippet │ │ ├── syncfusionToolkit.snippet │ │ ├── tapGestureRecognizer.snippet │ │ ├── verticalStack.snippet │ │ └── wpfBlazor.snippet │ ├── MauiTemplates.csproj │ ├── MauiXamlSnippets.pkgdef │ ├── Models │ ├── ITitle.cs │ └── Option.cs │ ├── NuGetTemplates.pkgdef │ ├── ObservableObject.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Resources │ └── Icon.png │ ├── ViewModels │ ├── BaseViewModel.cs │ ├── GenericItemViewModel.cs │ └── PageViewModel.cs │ ├── Views │ ├── GenericItemDialog.xaml │ └── GenericItemDialog.xaml.cs │ ├── license.txt │ ├── readme.docx │ ├── readme.pdf │ ├── readme.rtf │ ├── release-notes.txt │ ├── source.extension.cs │ └── source.extension.vsixmanifest ├── ItemTemplates ├── CometPageCS │ ├── CometPageCS.cs │ ├── CometPageCS.vstemplate │ └── __TemplateIcon.ico ├── MauiBlazorWebView │ ├── MauiBlazorWebView.vstemplate │ ├── MauiBlazorWebView.xaml │ ├── MauiBlazorWebView.xaml.cs │ └── __TemplateIcon.ico ├── MauiBlazorWebViewCS │ ├── MauiBlazorWebView.cs │ ├── MauiBlazorWebViewCS.vstemplate │ └── __TemplateIcon.ico ├── MauiHandler │ ├── Controls │ │ ├── CustomView.cs │ │ └── ICustomView.cs │ ├── Handlers │ │ ├── CustomViewHandler.Android.cs │ │ ├── CustomViewHandler.Standard.cs │ │ ├── CustomViewHandler.Tizen.cs │ │ ├── CustomViewHandler.Windows.cs │ │ ├── CustomViewHandler.cs │ │ ├── CustomViewHandler.iOS.cs │ │ └── ICustomViewHandler.cs │ ├── MauiHandler.vstemplate │ └── __TemplateIcon.ico ├── MauiHandlerReg │ ├── Controls │ │ ├── CustomView.cs │ │ └── ICustomView.cs │ ├── Handlers │ │ ├── CustomViewHandler.cs │ │ └── ICustomViewHandler.cs │ ├── MauiHandlerReg.vstemplate │ ├── Platforms │ │ ├── Android │ │ │ └── CustomViewHandler.cs │ │ ├── MacCatalyst │ │ │ └── CustomViewHandler.cs │ │ ├── Tizen │ │ │ └── CustomViewHandler.cs │ │ ├── Windows │ │ │ └── CustomViewHandler.cs │ │ └── iOS │ │ │ └── CustomViewHandler.cs │ └── __TemplateIcon.ico ├── MauiItem │ ├── MauiItem.vstemplate │ ├── MauiItem.xaml │ ├── MauiItem.xaml.cs │ └── __TemplateIcon.ico ├── MauiItemCS │ ├── MauiItemCS.cs │ ├── MauiItemCS.vstemplate │ └── __TemplateIcon.ico ├── MauiPage │ ├── MauiPage.vstemplate │ ├── MauiPage.xaml │ ├── MauiPage.xaml.cs │ └── __TemplateIcon.ico ├── MauiPageCS │ ├── MauiPageCS.cs │ ├── MauiPageCS.vstemplate │ └── __TemplateIcon.ico ├── MauiPageCSWithViewModel │ ├── MauiPageCSWithViewModel.vstemplate │ ├── ViewModels │ │ └── MauiViewModel.cs │ ├── Views │ │ └── MauiPageCS.cs │ └── __TemplateIcon.ico ├── MauiPageRazor │ ├── MauiPage.razor │ ├── MauiPageRazor.vstemplate │ └── __TemplateIcon.ico ├── MauiPageWithViewModel │ ├── MauiPageWithViewModel.vstemplate │ ├── ViewModels │ │ └── MauiViewModel.cs │ ├── Views │ │ ├── MauiPage.xaml │ │ └── MauiPage.xaml.cs │ └── __TemplateIcon.ico ├── MauiRenderer │ ├── Controls │ │ ├── CustomView.cs │ │ └── ICustomView.cs │ ├── MauiRenderer.vstemplate │ ├── Renderers │ │ ├── CustomViewRenderer.Android.cs │ │ ├── CustomViewRenderer.MacCatalyst.cs │ │ ├── CustomViewRenderer.Windows.cs │ │ └── CustomViewRenderer.iOS.cs │ └── __TemplateIcon.ico ├── MauiRendererReg │ ├── Controls │ │ ├── CustomView.cs │ │ └── ICustomView.cs │ ├── MauiRendererReg.vstemplate │ ├── Platforms │ │ ├── Android │ │ │ └── CustomViewRenderer.cs │ │ ├── MacCatalyst │ │ │ └── CustomViewRenderer.cs │ │ ├── Windows │ │ │ └── CustomViewRenderer.cs │ │ └── iOS │ │ │ └── CustomViewRenderer.cs │ └── __TemplateIcon.ico ├── MauiResDict │ ├── MauiResDict.vstemplate │ ├── MauiResDict.xaml │ ├── MauiResDict.xaml.cs │ └── __TemplateIcon.ico ├── MauiResDictXaml │ ├── MauiResDictXaml.vstemplate │ ├── MauiResDictXaml.xaml │ └── __TemplateIcon.ico ├── MauiShell │ ├── MauiShell.vstemplate │ ├── MauiShell.xaml │ ├── MauiShell.xaml.cs │ └── __TemplateIcon.ico ├── MauiShellCS │ ├── MauiShell.cs │ ├── MauiShellCS.vstemplate │ └── __TemplateIcon.ico ├── MauiShellRazor │ ├── MauiShell.razor │ ├── MauiShellRazor.vstemplate │ └── __TemplateIcon.ico ├── MauiView │ ├── MauiView.vstemplate │ ├── MauiView.xaml │ ├── MauiView.xaml.cs │ └── __TemplateIcon.ico ├── MauiViewCS │ ├── MauiViewCS.cs │ ├── MauiViewCS.vstemplate │ └── __TemplateIcon.ico ├── MauiViewRazor │ ├── MauiView.razor │ ├── MauiViewRazor.vstemplate │ └── __TemplateIcon.ico └── PartialClass │ ├── MyClass.cs │ ├── MyClass.vstemplate │ └── __TemplateIcon.ico ├── MauiTemplatesCLI ├── Create-Debug-Template.bat ├── Create-Release-Template.bat ├── Create-Template.bat ├── Install-Debug-Template.bat ├── Install-Release-Template.bat ├── Install-Template.bat ├── MauiAppCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ ├── ide │ │ │ └── icon.png │ │ └── template.json │ ├── App.markup.cs │ ├── App.razor.cs │ ├── App.xaml │ ├── App.xaml.cs │ ├── AppShell.razor │ ├── AppShell.xaml │ ├── AppShell.xaml.cs │ ├── Controls │ │ ├── DateTimePicker.xaml │ │ └── DateTimePicker.xaml.cs │ ├── Converters │ │ └── HybridWebViewRawMessageReceivedEventArgs.cs │ ├── Data │ │ ├── WeatherForecast.cs │ │ └── WeatherForecastService.cs │ ├── Directory.Packages.props │ ├── Exceptions │ │ ├── RouteNotFoundException.cs │ │ └── TypeNotRegisteredException.cs │ ├── Helpers │ │ ├── ResourceHelper.markup.cs │ │ └── VisualStateHelper.markup.cs │ ├── Imports.cs │ ├── Main.razor │ ├── MainWindow.markup.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── MauiApp.1.MauiLib │ │ └── MauiApp.1.MauiLib.csproj │ ├── MauiApp.1.RazorLib │ │ ├── MauiApp.1.RazorLib.csproj │ │ └── _Imports.razor │ ├── MauiApp.1.code-workspace │ ├── MauiApp.1.csproj │ ├── MauiApp.1.sln │ ├── MauiApp.1.xml │ ├── MauiApp.1 │ │ └── _Imports.razor │ ├── MauiProgram.cs │ ├── Models │ │ └── Event.cs │ ├── NuGet.xml │ ├── Pages │ │ ├── Counter.razor │ │ ├── Home.razor │ │ └── Weather.razor │ ├── Platforms │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── MainActivity.cs │ │ │ ├── MainApplication.cs │ │ │ └── Resources │ │ │ │ └── values │ │ │ │ └── colors.xml │ │ ├── MacCatalyst │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ └── Program.cs │ │ ├── Tizen │ │ │ ├── Main.cs │ │ │ └── tizen-manifest.xml │ │ ├── Windows │ │ │ ├── App.xaml │ │ │ ├── App.xaml.cs │ │ │ ├── Package.appxmanifest │ │ │ └── app.manifest │ │ └── iOS │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ └── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Resources │ │ ├── AppColors.cs │ │ ├── AppStyles.cs │ │ ├── AppStyles.xaml │ │ ├── Colors.xaml │ │ ├── Fonts │ │ │ ├── OpenSans-Regular.ttf │ │ │ └── OpenSans-SemiBold.ttf │ │ ├── Images │ │ │ └── dotnet_bot.svg │ │ ├── Raw │ │ │ ├── AboutAssets.txt │ │ │ └── hybridroot │ │ │ │ ├── css │ │ │ │ ├── app.css │ │ │ │ └── bootstrap │ │ │ │ │ ├── bootstrap.min.css │ │ │ │ │ └── bootstrap.min.css.map │ │ │ │ ├── index.html │ │ │ │ └── scripts │ │ │ │ └── hwv.js │ │ ├── Styles.xaml │ │ ├── appicon.svg │ │ └── appiconfg.svg │ ├── Services │ │ ├── AppService.cs │ │ ├── DialogService.cs │ │ ├── IDialogService.cs │ │ ├── INavigationService.cs │ │ └── NavigationService.cs │ ├── Shared │ │ ├── MainLayout.razor │ │ ├── MainLayout.razor.css │ │ ├── NavMenu.razor │ │ ├── NavMenu.razor.css │ │ └── SurveyPrompt.razor │ ├── ViewModels │ │ ├── AppViewModel.cs │ │ ├── BaseViewModel.cs │ │ ├── EventsViewModel.cs │ │ ├── LoginViewModel.cs │ │ ├── MainViewModel.cs │ │ ├── NewEventViewModel.cs │ │ ├── SearchViewModel.cs │ │ └── SettingsViewModel.cs │ ├── Views │ │ ├── EventsPage.xaml │ │ ├── EventsPage.xaml.cs │ │ ├── LoginPage.xaml │ │ ├── LoginPage.xaml.cs │ │ ├── MainPage.markup.cs │ │ ├── MainPage.razor │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── NewEventPage.xaml │ │ ├── NewEventPage.xaml.cs │ │ ├── SearchPage.xaml │ │ ├── SearchPage.xaml.cs │ │ ├── SettingsPage.xaml │ │ ├── SettingsPage.xaml.cs │ │ ├── VersionTemplate.markup.cs │ │ ├── VersionTemplate.xaml │ │ └── VersionTemplate.xaml.cs │ └── wwwroot │ │ ├── css │ │ ├── app.css │ │ ├── bootstrap │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ ├── font-awesome │ │ │ ├── css │ │ │ │ └── all.min.css │ │ │ └── webfonts │ │ │ │ ├── fa-brands-400.ttf │ │ │ │ ├── fa-brands-400.woff2 │ │ │ │ ├── fa-regular-400.ttf │ │ │ │ ├── fa-regular-400.woff2 │ │ │ │ ├── fa-solid-900.ttf │ │ │ │ ├── fa-solid-900.woff2 │ │ │ │ ├── fa-v4compatibility.ttf │ │ │ │ └── fa-v4compatibility.woff2 │ │ └── open-iconic │ │ │ ├── FONT-LICENSE │ │ │ ├── ICON-LICENSE │ │ │ ├── README.md │ │ │ └── font │ │ │ ├── css │ │ │ └── open-iconic-bootstrap.min.css │ │ │ └── fonts │ │ │ ├── open-iconic.eot │ │ │ ├── open-iconic.otf │ │ │ ├── open-iconic.svg │ │ │ ├── open-iconic.ttf │ │ │ └── open-iconic.woff │ │ ├── favicon.ico │ │ └── index.html ├── MauiAppFS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ ├── ide │ │ │ └── icon.png │ │ └── template.json │ ├── App.fs │ ├── AppBuilderExtensions.fs │ ├── BlazorWebView.fs │ ├── Directory.Packages.props │ ├── MauiApp.1.RazorLib │ │ ├── Data │ │ │ ├── WeatherForecast.cs │ │ │ └── WeatherForecastService.cs │ │ ├── Main.razor │ │ ├── MauiApp.1.RazorLib.csproj │ │ ├── Pages │ │ │ ├── Counter.razor │ │ │ ├── Home.razor │ │ │ └── Weather.razor │ │ ├── Shared │ │ │ ├── MainLayout.razor │ │ │ ├── MainLayout.razor.css │ │ │ ├── NavMenu.razor │ │ │ ├── NavMenu.razor.css │ │ │ └── SurveyPrompt.razor │ │ └── _Imports.razor │ ├── MauiApp.1.code-workspace │ ├── MauiApp.1.fsproj │ ├── MauiApp.1.sln │ ├── MauiApp.1.xml │ ├── MauiProgram.fs │ ├── NuGet.xml │ ├── Platforms │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── MainActivity.fs │ │ │ ├── MainApplication.fs │ │ │ └── Resources │ │ │ │ └── values │ │ │ │ └── colors.xml │ │ ├── MacCatalyst │ │ │ ├── AppDelegate.fs │ │ │ ├── Info.plist │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ └── Program.fs │ │ ├── Tizen │ │ │ ├── Main.fs │ │ │ └── tizen-manifest.xml │ │ ├── Windows │ │ │ ├── App.fs │ │ │ ├── Main.fs │ │ │ ├── Package.appxmanifest │ │ │ └── app.manifest │ │ └── iOS │ │ │ ├── AppDelegate.fs │ │ │ ├── Info.plist │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ └── Program.fs │ ├── Properties │ │ └── launchSettings.json │ ├── Resources │ │ ├── AppIcon │ │ │ ├── appicon.svg │ │ │ └── appiconfg.svg │ │ ├── Fonts │ │ │ ├── OpenSans-Regular.ttf │ │ │ └── OpenSans-Semibold.ttf │ │ ├── Images │ │ │ └── dotnet_bot.svg │ │ ├── Raw │ │ │ └── AboutAssets.txt │ │ └── Splash │ │ │ └── splash.svg │ └── wwwroot │ │ ├── css │ │ ├── app.css │ │ ├── bootstrap │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ ├── font-awesome │ │ │ ├── css │ │ │ │ └── all.min.css │ │ │ └── webfonts │ │ │ │ ├── fa-brands-400.ttf │ │ │ │ ├── fa-brands-400.woff2 │ │ │ │ ├── fa-regular-400.ttf │ │ │ │ ├── fa-regular-400.woff2 │ │ │ │ ├── fa-solid-900.ttf │ │ │ │ ├── fa-solid-900.woff2 │ │ │ │ ├── fa-v4compatibility.ttf │ │ │ │ └── fa-v4compatibility.woff2 │ │ └── open-iconic │ │ │ ├── FONT-LICENSE │ │ │ ├── ICON-LICENSE │ │ │ ├── README.md │ │ │ └── font │ │ │ ├── css │ │ │ └── open-iconic-bootstrap.min.css │ │ │ └── fonts │ │ │ ├── open-iconic.eot │ │ │ ├── open-iconic.otf │ │ │ ├── open-iconic.svg │ │ │ ├── open-iconic.ttf │ │ │ └── open-iconic.woff │ │ ├── favicon.ico │ │ └── index.html ├── MauiBlazorWebView │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiBlazorWebView.1Page.xaml │ └── MauiBlazorWebView.1Page.xaml.cs ├── MauiBlazorWebViewCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiBlazorWebView.1Page.cs ├── MauiClassLib │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ ├── ide │ │ │ └── icon.png │ │ └── template.json │ ├── Class1.cs │ ├── Directory.Packages.props │ ├── Imports.cs │ ├── MauiClassLib.1.code-workspace │ ├── MauiClassLib.1.csproj │ ├── MauiClassLib.1.sln │ ├── MauiClassLib.1.xml │ ├── NuGet.xml │ └── Platforms │ │ ├── Android │ │ ├── Class1.cs │ │ └── PlatformClass1.cs │ │ ├── MacCatalyst │ │ ├── Class1.cs │ │ └── PlatformClass1.cs │ │ ├── Tizen │ │ ├── Class1.cs │ │ └── PlatformClass1.cs │ │ ├── Windows │ │ ├── Class1.cs │ │ └── PlatformClass1.cs │ │ └── iOS │ │ ├── Class1.cs │ │ └── PlatformClass1.cs ├── MauiItem │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiItem.1.xaml │ └── MauiItem.1.xaml.cs ├── MauiItemCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiItem.1.cs ├── MauiMvvm │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── Maui.1Page.xaml │ ├── Maui.1Page.xaml.cs │ └── Maui.1ViewModel.cs ├── MauiMvvmCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── Maui.1Page.cs │ └── Maui.1ViewModel.cs ├── MauiPage │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiPage.1Page.xaml │ └── MauiPage.1Page.xaml.cs ├── MauiPageCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiPage.1Page.cs ├── MauiPageRazor │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiPage.1Page.razor ├── MauiResDict │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiResDict.1.xaml │ └── MauiResDict.1.xaml.cs ├── MauiShell │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiShell.1Shell.xaml │ └── MauiShell.1Shell.xaml.cs ├── MauiShellCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiShell.1Shell.cs ├── MauiShellRazor │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiShell.1Shell.razor ├── MauiView │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ ├── MauiView.1View.xaml │ └── MauiView.1View.xaml.cs ├── MauiViewCS │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiView.1View.cs ├── MauiViewRazor │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MauiView.1View.razor ├── MyClass │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── MyClass.1.cs ├── PackageName.txt ├── PackageVersion.txt ├── SharedClassLib │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ ├── ide │ │ │ └── icon.png │ │ └── template.json │ ├── AssemblyInfo.shared.cs │ ├── Directory.Packages.props │ ├── Imports.forms.cs │ ├── Imports.maui.cs │ ├── Imports.shared.cs │ ├── NuGet.xml │ ├── SharedClassLib.1.code-workspace │ ├── SharedClassLib.1.csproj │ ├── SharedClassLib.1.sln │ └── SharedClassLib.1.xml ├── Slnx │ ├── .template.config │ │ ├── dotnetcli.host.json │ │ ├── ide.host.json │ │ └── template.json │ └── Slnx.1.slnx ├── Uninstall-Template.bat ├── VijayAnand.MauiTemplates.csproj ├── VijayAnand.MauiTemplates.slnx ├── icon.png ├── overview.md └── release-notes.txt ├── ProjectTemplates ├── MauiApp │ ├── App.xaml │ ├── App.xaml.cs │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── MauiApp.csproj │ ├── MauiApp.vstemplate │ ├── MauiProgram.cs │ ├── Platforms │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── MainActivity.cs │ │ │ ├── MainApplication.cs │ │ │ └── Resources │ │ │ │ └── values │ │ │ │ └── colors.xml │ │ ├── MacCatalyst │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ │ ├── Windows │ │ │ ├── App.xaml │ │ │ ├── App.xaml.cs │ │ │ ├── Package.appxmanifest │ │ │ └── app.manifest │ │ └── iOS │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Resources │ │ ├── Fonts │ │ │ └── OpenSans-Regular.ttf │ │ ├── Images │ │ │ └── dotnet_bot.svg │ │ ├── appicon.svg │ │ └── appiconfg.svg │ └── __TemplateIcon.ico ├── MauiAppCS │ ├── App.cs │ ├── Icon.png │ ├── Imports.cs │ ├── MainPage.cs │ ├── MauiAppCS.code-workspace │ ├── MauiAppCS.csproj │ ├── MauiAppCS.vstemplate │ ├── MauiProgram.cs │ ├── Platforms │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── MainActivity.cs │ │ │ ├── MainApplication.cs │ │ │ └── Resources │ │ │ │ └── values │ │ │ │ └── colors.xml │ │ ├── MacCatalyst │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ │ ├── Tizen │ │ │ ├── Main.cs │ │ │ └── tizen-manifest.xml │ │ ├── Windows │ │ │ ├── App.xaml │ │ │ ├── App.xaml.cs │ │ │ ├── Package.appxmanifest │ │ │ └── app.manifest │ │ └── iOS │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Resources │ │ ├── Colors.xaml │ │ ├── Colors.xaml.cs │ │ ├── Fonts │ │ │ ├── OpenSans-Regular.ttf │ │ │ └── OpenSans-SemiBold.ttf │ │ ├── Images │ │ │ └── dotnet_bot.svg │ │ ├── Raw │ │ │ └── AboutAssets.txt │ │ ├── Styles.xaml │ │ ├── Styles.xaml.cs │ │ ├── appicon.svg │ │ ├── appiconfg.svg │ │ └── splash.svg │ └── __TemplateIcon.ico ├── MauiBlazorApp │ ├── App.xaml │ ├── App.xaml.cs │ ├── Data │ │ ├── WeatherForecast.cs │ │ └── WeatherForecastService.cs │ ├── Main.razor │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── MauiBlazorApp.csproj │ ├── MauiBlazorApp.vstemplate │ ├── MauiProgram.cs │ ├── Pages │ │ ├── Counter.razor │ │ ├── FetchData.razor │ │ └── Index.razor │ ├── Platforms │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── MainActivity.cs │ │ │ ├── MainApplication.cs │ │ │ └── Resources │ │ │ │ └── values │ │ │ │ └── colors.xml │ │ ├── MacCatalyst │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ │ ├── Windows │ │ │ ├── App.xaml │ │ │ ├── App.xaml.cs │ │ │ ├── Package.appxmanifest │ │ │ └── app.manifest │ │ └── iOS │ │ │ ├── AppDelegate.cs │ │ │ ├── Info.plist │ │ │ └── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Resources │ │ ├── Fonts │ │ │ └── OpenSans-Regular.ttf │ │ ├── Images │ │ │ └── dotnet_bot.svg │ │ ├── appicon.svg │ │ └── appiconfg.svg │ ├── Shared │ │ ├── MainLayout.razor │ │ ├── NavMenu.razor │ │ └── SurveyPrompt.razor │ ├── _Imports.razor │ ├── __TemplateIcon.ico │ └── wwwroot │ │ ├── css │ │ ├── app.css │ │ ├── bootstrap │ │ │ ├── bootstrap.min.css │ │ │ └── bootstrap.min.css.map │ │ └── open-iconic │ │ │ ├── FONT-LICENSE │ │ │ ├── ICON-LICENSE │ │ │ ├── README.md │ │ │ └── font │ │ │ ├── css │ │ │ └── open-iconic-bootstrap.min.css │ │ │ └── fonts │ │ │ ├── open-iconic.eot │ │ │ ├── open-iconic.otf │ │ │ ├── open-iconic.svg │ │ │ ├── open-iconic.ttf │ │ │ └── open-iconic.woff │ │ └── index.html └── MauiClassLib │ ├── Class1.cs │ ├── MauiClassLib.csproj │ ├── MauiClassLib.vstemplate │ └── __TemplateIcon.ico └── Scripts ├── class-cs.bat ├── class-cs.ps1 ├── maui-bwv-cs.bat ├── maui-bwv-cs.ps1 ├── maui-bwv.bat ├── maui-bwv.ps1 ├── maui-item-cs.bat ├── maui-item-cs.ps1 ├── maui-item.bat ├── maui-item.ps1 ├── maui-mvvm-cs.bat ├── maui-mvvm-cs.ps1 ├── maui-mvvm.bat ├── maui-mvvm.ps1 ├── maui-page-cs.bat ├── maui-page-cs.ps1 ├── maui-page.bat ├── maui-page.ps1 ├── maui-resdict.bat ├── maui-resdict.ps1 ├── maui-shell-cs.bat ├── maui-shell-cs.ps1 ├── maui-shell.bat ├── maui-shell.ps1 ├── maui-view-cs.bat ├── maui-view-cs.ps1 ├── maui-view.bat └── maui-view.ps1 /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: ["egvijayanand"] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: ["https://paypal.me/egvijayanand", "https://www.buymeacoffee.com/egvijayanand"] 14 | -------------------------------------------------------------------------------- /Artifacts/Batch.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/Artifacts/Batch.zip -------------------------------------------------------------------------------- /Artifacts/PowerShell.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/Artifacts/PowerShell.zip -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "allowPrerelease": false, 4 | "rollForward": "latestMinor", 5 | "version": "9.0.100" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /images/add-new-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/add-new-item.png -------------------------------------------------------------------------------- /images/dotnetmaui-all-in-one-app-project-options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/dotnetmaui-all-in-one-app-project-options.png -------------------------------------------------------------------------------- /images/dotnetmaui-all-in-one-project-template-pinned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/dotnetmaui-all-in-one-project-template-pinned.png -------------------------------------------------------------------------------- /images/dotnetmaui-class-library-project-options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/dotnetmaui-class-library-project-options.png -------------------------------------------------------------------------------- /images/dotnetmaui-generic-item-popup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/dotnetmaui-generic-item-popup.png -------------------------------------------------------------------------------- /images/maui-project-templates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/maui-project-templates.png -------------------------------------------------------------------------------- /images/vs-manage-extensions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/images/vs-manage-extensions.png -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/CodeSnippets/horizontalStack.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Horizontal StackLayout 6 | hstack 7 | Code snippet for Horizontal StackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | $selected$$end$ 17 | ]]> 18 | 19 | 20 |
21 |
-------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/CodeSnippets/stack.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | StackLayout 6 | stack 7 | Code snippet for StackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | $selected$$end$ 17 | ]]> 18 | 19 | 20 |
21 |
-------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/CodeSnippets/verticalStack.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Vertical StackLayout 6 | vstack 7 | Code snippet for Vertical StackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | $selected$$end$ 17 | ]]> 18 | 19 | 20 |
21 |
-------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiPageCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiPageCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiPageXaml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiPageXaml.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiResDict.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiResDict.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiShell.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiShell.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiViewCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiViewCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiViewXaml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ItemTemplates/MauiViewXaml.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/ProjectTemplates/MauiClassLib.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/ProjectTemplates/MauiClassLib.zip -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using MauiItemTemplates; 2 | using System.Reflection; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle(Vsix.Name)] 6 | [assembly: AssemblyDescription(Vsix.Description)] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany(Vsix.Author)] 9 | [assembly: AssemblyProduct(Vsix.Name)] 10 | [assembly: AssemblyCopyright(Vsix.Author)] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: AssemblyVersion(Vsix.Version)] 17 | [assembly: AssemblyFileVersion(Vsix.Version)] 18 | -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiItemTemplates/MauiItemTemplates/Resources/Icon.png -------------------------------------------------------------------------------- /src/Extensions/MauiItemTemplates/MauiItemTemplates/release-notes.txt: -------------------------------------------------------------------------------- 1 | What's new in ver. 1.0.0.5: 2 | 3 | Templates have been updated to support .NET MAUI Preview 10. -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Assets/VijayAnand.MauiTemplates.7.10.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/Assets/VijayAnand.MauiTemplates.7.10.0.nupkg -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Command.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | using System; 3 | using System.Windows.Input; 4 | 5 | namespace VijayAnand.MauiTemplates 6 | { 7 | public class Command(Action execute, Func? canExecute = null) : ICommand 8 | { 9 | private readonly Action execute = execute ?? throw new ArgumentNullException(nameof(execute)); 10 | 11 | public event EventHandler? CanExecuteChanged; 12 | 13 | public bool CanExecute(object? parameter) => canExecute?.Invoke() ?? true; 14 | 15 | public void Execute(object? parameter) => execute(); 16 | 17 | public void RaiseCanExecuteChanged() => CanExecuteChanged?.Invoke(this, EventArgs.Empty); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Extensions/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | 3 | namespace VijayAnand.MauiTemplates.Extensions 4 | { 5 | public static class StringExtensions 6 | { 7 | public static bool IsEmpty(this string? value) 8 | => string.IsNullOrEmpty(value); 9 | 10 | public static bool HasValue(this string? value) 11 | => !string.IsNullOrWhiteSpace(value); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/CometPageCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/CometPageCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiBlazorWebView.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiBlazorWebView.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiBlazorWebViewCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiBlazorWebViewCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiHandler.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiHandler.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiHandlerReg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiHandlerReg.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiItem.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiItem.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiItemCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiItemCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPage.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPage.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageCSWithViewModel.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageCSWithViewModel.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageRazor.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageRazor.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageWithViewModel.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiPageWithViewModel.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiRenderer.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiRenderer.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiRendererReg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiRendererReg.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiResDict.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiResDict.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiResDictXaml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiResDictXaml.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShell.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShell.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShellCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShellCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShellRazor.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiShellRazor.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiView.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiView.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiViewCS.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiViewCS.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiViewRazor.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/MauiViewRazor.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/PartialClass.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/ItemTemplates/PartialClass.zip -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiCSharpSnippets.pkgdef: -------------------------------------------------------------------------------- 1 | [$RootKey$\Languages\CodeExpansions\CSharp\Paths] 2 | "MauiCSharpSnippets"="$PackageFolder$\MauiSnippets\CSharp\" 3 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/CSharp/crossPlatform.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Cross Platform 6 | cp 7 | Code snippet for Cross Platform 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | 15 | 23 | 24 | 25 |
26 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/blazorWebView.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | BlazorWebView 6 | bwv 7 | Code snippet for BlazorWebView 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | ]]> 19 | 20 |
21 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/dragGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Drag Gesture Recognizer 6 | drag 7 | Code snippet for DragGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/dropGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Drop Gesture Recognizer 6 | drop 7 | Code snippet for DropGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/flexLayout.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Flex Layout 6 | flex 7 | Code snippet for FlexLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | 17 | $selected$$end$ 18 | ]]> 19 | 20 | 21 |
22 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/gridLayout.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Grid Layout 6 | grid1 7 | Code snippet for GridLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | 17 | $selected$ 18 | ]]> 19 | 20 | 21 |
22 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/horizontalStack.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Horizontal StackLayout 6 | hstack 7 | Code snippet for Horizontal StackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | 17 | $selected$$end$ 18 | ]]> 19 | 20 | 21 |
22 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/mauiBlazor.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | .NET MAUI Blazor Namespace 6 | mb 7 | Code snippet for .NET MAUI Blazor namespace 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/panGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Pan Gesture Recognizer 6 | pan 7 | Code snippet for PanGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/pinchGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Pinch Gesture Recognizer 6 | pinch 7 | Code snippet for PinchGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/pointerGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Pointer Gesture Recognizer 6 | pointer 7 | Code snippet for PointerGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/stackLayout.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Stack Layout 6 | stack 7 | Code snippet for StackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | 17 | $selected$$end$ 18 | ]]> 19 | 20 | 21 |
22 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/swipeGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Swipe Gesture Recognizer 6 | swipe 7 | Code snippet for SwipeGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/syncfusionToolkit.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Syncfusion.Maui.Toolkit Namespace 6 | sft 7 | Code snippet for Syncfusion.Maui.Toolkit namespace 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | 15 | 16 |
17 |
18 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/tapGestureRecognizer.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Tap Gesture Recognizer 6 | tap 7 | Code snippet for TapGestureRecognizer 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | $end$]]> 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/verticalStack.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | Vertical StackLayout 6 | vstack 7 | Code snippet for VerticalStackLayout 8 | Vijay Anand E G 9 | 10 | Expansion 11 | SurroundsWith 12 | 13 |
14 | 15 | 16 | 17 | $selected$$end$ 18 | ]]> 19 | 20 | 21 |
22 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiSnippets/Xaml/wpfBlazor.snippet: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | WPF Blazor Namespace 6 | wb 7 | Code snippet for .NET MAUI Blazor namespace 8 | Vijay Anand E G 9 | 10 | Expansion 11 | 12 |
13 | 14 | 15 | 16 |
17 |
-------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/MauiXamlSnippets.pkgdef: -------------------------------------------------------------------------------- 1 | [$RootKey$\Languages\CodeExpansions\XAML\Paths] 2 | "MauiXamlSnippets"="$PackageFolder$\MauiSnippets\Xaml\" 3 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Models/ITitle.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | 3 | namespace VijayAnand.MauiTemplates.Models 4 | { 5 | public interface ITitle 6 | { 7 | string? Title { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Models/Option.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | 3 | namespace VijayAnand.MauiTemplates.Models 4 | { 5 | public class Option : ObservableObject 6 | { 7 | private bool selected; 8 | 9 | public bool Selected 10 | { 11 | get => selected; 12 | set => SetProperty(ref selected, value); 13 | } 14 | 15 | public string? Content { get; init; } 16 | 17 | public string? Accelerator { get; init; } 18 | 19 | public int TabIndex { get; init; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/NuGetTemplates.pkgdef: -------------------------------------------------------------------------------- 1 | [$RootKey$\TemplateEngine\Templates\VijayAnand.MauiTemplates\7.10.0] 2 | "InstalledPath"="$PackageFolder$\ProjectTemplates" 3 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/Resources/Icon.png -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ViewModels/BaseViewModel.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | 3 | namespace VijayAnand.MauiTemplates.ViewModels 4 | { 5 | public partial class BaseViewModel : ObservableObject 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/ViewModels/PageViewModel.cs: -------------------------------------------------------------------------------- 1 | #nullable enable 2 | 3 | using VijayAnand.MauiTemplates.Models; 4 | 5 | namespace VijayAnand.MauiTemplates.ViewModels 6 | { 7 | public partial class PageViewModel : BaseViewModel, ITitle 8 | { 9 | private string? title; 10 | 11 | public string? Title 12 | { 13 | get => title; 14 | set => SetProperty(ref title, value); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/readme.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/readme.docx -------------------------------------------------------------------------------- /src/Extensions/MauiTemplates/MauiTemplates/readme.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/Extensions/MauiTemplates/MauiTemplates/readme.pdf -------------------------------------------------------------------------------- /src/ItemTemplates/CometPageCS/CometPageCS.cs: -------------------------------------------------------------------------------- 1 | using Comet; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace $rootnamespace$ 9 | { 10 | public class $safeitemname$ : View 11 | { 12 | public $safeitemname$() 13 | { 14 | Body = () => new VStack 15 | { 16 | new Text(() => "Comet is super cool!!!") 17 | }; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/ItemTemplates/CometPageCS/CometPageCS.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | CometPage.cs 4 | Comet Page (C#) 5 | A Comet page for displaying content using C#. 6 | CSharp 7 | 110 8 | __TemplateIcon.ico 9 | 10 | 11 | 12 | CometPageCS.cs 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/ItemTemplates/CometPageCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/CometPageCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiBlazorWebView/MauiBlazorWebView.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : ContentPage 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiBlazorWebView/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiBlazorWebView/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiBlazorWebViewCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiBlazorWebViewCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Controls/CustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : View, I$safeitemname$ 4 | { 5 | public $safeitemname$() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Controls/ICustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public interface $safeitemname$ : IView 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Handlers/CustomViewHandler.Android.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = Android.Views.View; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(Context); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Handlers/CustomViewHandler.Standard.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = System.Object; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => throw new NotImplementedException(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Handlers/CustomViewHandler.Windows.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = Microsoft.UI.Xaml.FrameworkElement; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Handlers/CustomViewHandler.iOS.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = UIKit.UIView; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/Handlers/ICustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | #if ANDROID 2 | using TPlatformView = Android.Views.View; 3 | #elif IOS || MACCATALYST 4 | using TPlatformView = UIKit.UIView; 5 | #elif TIZEN 6 | using TPlatformView = System.Object; 7 | #elif WINDOWS 8 | using TPlatformView = Microsoft.UI.Xaml.FrameworkElement; 9 | #elif NETSTANDARD || !PLATFORM || (NET6_0_OR_GREATER && !IOS && !ANDROID && !TIZEN) 10 | using TPlatformView = System.Object; 11 | #endif 12 | 13 | using $base_namespace$.Controls; 14 | 15 | namespace $rootnamespace$ 16 | { 17 | public partial interface $safeitemname$ : IViewHandler 18 | { 19 | new I$fileinputname$ VirtualView { get; } 20 | 21 | // TODO: PlatformView definition 22 | new TPlatformView PlatformView { get; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandler/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiHandler/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Controls/CustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : View, I$safeitemname$ 4 | { 5 | public $safeitemname$() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Controls/ICustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public interface $safeitemname$ : IView 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Handlers/ICustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | #if ANDROID 2 | using TPlatformView = Android.Views.View; 3 | #elif IOS || MACCATALYST 4 | using TPlatformView = UIKit.UIView; 5 | #elif TIZEN 6 | using TPlatformView = System.Object; 7 | #elif WINDOWS 8 | using TPlatformView = Microsoft.UI.Xaml.FrameworkElement; 9 | #elif NETSTANDARD || !PLATFORM || (NET6_0_OR_GREATER && !IOS && !ANDROID && !TIZEN) 10 | using TPlatformView = System.Object; 11 | #endif 12 | 13 | using $base_namespace$.Controls; 14 | 15 | namespace $rootnamespace$ 16 | { 17 | public partial interface $safeitemname$ : IViewHandler 18 | { 19 | new I$fileinputname$ VirtualView { get; } 20 | 21 | // TODO: PlatformView definition 22 | new TPlatformView PlatformView { get; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Platforms/Android/CustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = Android.Views.View; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $base_namespace$.Handlers 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(Context); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Platforms/MacCatalyst/CustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = UIKit.UIView; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $base_namespace$.Handlers 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Platforms/Windows/CustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = Microsoft.UI.Xaml.FrameworkElement; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $base_namespace$.Handlers 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/Platforms/iOS/CustomViewHandler.cs: -------------------------------------------------------------------------------- 1 | using TPlatformView = UIKit.UIView; 2 | using $base_namespace$.Controls; 3 | using Microsoft.Maui.Handlers; 4 | 5 | namespace $base_namespace$.Handlers 6 | { 7 | public partial class $safeitemname$ : ViewHandler 8 | { 9 | protected override TPlatformView CreatePlatformView() => new TPlatformView(); 10 | 11 | protected override void ConnectHandler(TPlatformView platformView) 12 | { 13 | base.ConnectHandler(platformView); 14 | } 15 | 16 | protected override void DisconnectHandler(TPlatformView platformView) 17 | { 18 | base.DisconnectHandler(platformView); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiHandlerReg/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiHandlerReg/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiItem/MauiItem.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$; 2 | 3 | public partial class $safeitemname$ : $base_type_cs$ 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiItem/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiItem/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiItemCS/MauiItemCS.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$; 2 | 3 | public partial class $safeitemname$ : $base_type$ 4 | { 5 | public $safeitemname$() 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiItemCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiItemCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPage/MauiPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : ContentPage 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPage/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiPage/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCS/MauiPageCS.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public class $safeitemname$ : ContentPage 4 | { 5 | public $safeitemname$() 6 | { 7 | Content = new Grid 8 | { 9 | Children = 10 | { 11 | new Label 12 | { 13 | Text = "Welcome to .NET MAUI!!!", 14 | TextColor = Colors.Purple, 15 | HorizontalOptions = LayoutOptions.Center, 16 | VerticalOptions = LayoutOptions.Center 17 | } 18 | } 19 | }; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCS/MauiPageCS.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | MauiPage.cs 4 | Content Page (C#) (.NET MAUI) 5 | A page for displaying content using C#. 6 | CSharp 7 | MAUI 8 | 120 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiPageCS.cs 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiPageCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCSWithViewModel/ViewModels/MauiViewModel.cs: -------------------------------------------------------------------------------- 1 | using CommunityToolkit.Mvvm.ComponentModel; 2 | using CommunityToolkit.Mvvm.Input; 3 | using System.ComponentModel; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : BaseViewModel 8 | { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCSWithViewModel/Views/MauiPageCS.cs: -------------------------------------------------------------------------------- 1 | using $base_namespace$.ViewModels; 2 | 3 | namespace $rootnamespace$ 4 | { 5 | public class $safeitemname$ : ContentPage 6 | { 7 | public $safeitemname$() 8 | { 9 | BindingContext = new $fileinputname$ViewModel(); 10 | Content = new StackLayout 11 | { 12 | Children = 13 | { 14 | new Label 15 | { 16 | Text = "Welcome to .NET MAUI!!!", 17 | TextColor = Colors.Purple, 18 | HorizontalOptions = LayoutOptions.Center, 19 | VerticalOptions = LayoutOptions.Center 20 | } 21 | } 22 | }; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageCSWithViewModel/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiPageCSWithViewModel/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageRazor/MauiPage.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 | 4 | 6 | 7 | @code { 8 | 9 | } -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageRazor/MauiPageRazor.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | MauiPage.razor 4 | Content Page (Razor) (.NET MAUI) 5 | A page for displaying content using Razor syntax. 6 | CSharp 7 | MAUI 8 | 110 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiPage.razor 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageRazor/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiPageRazor/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageWithViewModel/ViewModels/MauiViewModel.cs: -------------------------------------------------------------------------------- 1 | using CommunityToolkit.Mvvm.ComponentModel; 2 | using CommunityToolkit.Mvvm.Input; 3 | using System.ComponentModel; 4 | 5 | namespace $rootnamespace$ 6 | { 7 | public partial class $safeitemname$ : BaseViewModel 8 | { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageWithViewModel/Views/MauiPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : ContentPage 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiPageWithViewModel/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiPageWithViewModel/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRenderer/Controls/CustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : View, I$safeitemname$ 4 | { 5 | public $safeitemname$() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRenderer/Controls/ICustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public interface $safeitemname$ 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRenderer/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiRenderer/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRendererReg/Controls/CustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : View, I$safeitemname$ 4 | { 5 | public $safeitemname$() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRendererReg/Controls/ICustomView.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public interface $safeitemname$ 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiRendererReg/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiRendererReg/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiResDict/MauiResDict.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : ResourceDictionary 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiResDict/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiResDict/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiResDictXaml/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiResDictXaml/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShell/MauiShell.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : Shell 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | 10 | // UnComment the below method to handle Shell Menu item click event 11 | // And ensure appropriate page definitions are available for it work as expected 12 | /* 13 | private async void OnMenuItemClicked(object sender, EventArgs e) 14 | { 15 | await Current.GoToAsync("//login"); 16 | } 17 | */ 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShell/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiShell/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShellCS/MauiShellCS.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | AppShell.cs 4 | Shell Page (C#) (.NET MAUI) 5 | A page for defining app visual hierarchy and navigation using C#. 6 | CSharp 7 | MAUI 8 | 120 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiShell.cs 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShellCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiShellCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShellRazor/MauiShell.razor: -------------------------------------------------------------------------------- 1 |  2 | @* Flyout Items *@ 3 | @* 4 | 5 | 6 | 7 | *@ 8 | 9 | @* Menu Items *@ 10 | @* *@ 11 | 12 | @* Tab Items *@ 13 | @* 14 | 15 | 16 | 17 | 18 | 19 | *@ 20 | 21 | 22 | @code { 23 | void OnMenuItemClicked() 24 | { 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShellRazor/MauiShellRazor.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | AppShell.razor 4 | Shell Page (Razor) (.NET MAUI) 5 | A page for defining app visual hierarchy and navigation using Razor syntax. 6 | CSharp 7 | MAUI 8 | 110 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiShell.razor 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiShellRazor/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiShellRazor/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiView/MauiView.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public partial class $safeitemname$ : ContentView 4 | { 5 | public $safeitemname$() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiView/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiView/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewCS/MauiViewCS.cs: -------------------------------------------------------------------------------- 1 | namespace $rootnamespace$ 2 | { 3 | public class $safeitemname$ : ContentView 4 | { 5 | public $safeitemname$() 6 | { 7 | Content = new Grid 8 | { 9 | Children = 10 | { 11 | new Label 12 | { 13 | Text = "Welcome to .NET MAUI!!!", 14 | TextColor = Colors.Purple, 15 | HorizontalOptions = LayoutOptions.Center, 16 | VerticalOptions = LayoutOptions.Center 17 | } 18 | } 19 | }; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewCS/MauiViewCS.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | MauiView.cs 4 | Content View (C#) (.NET MAUI) 5 | A view for displaying content using C#. 6 | CSharp 7 | MAUI 8 | 120 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiViewCS.cs 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiViewCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewRazor/MauiView.razor: -------------------------------------------------------------------------------- 1 |  2 | 4 | 5 | @code { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewRazor/MauiViewRazor.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | MauiView.razor 4 | Content View (Razor) (.NET MAUI) 5 | A view for displaying content using Razor syntax. 6 | CSharp 7 | MAUI 8 | 110 9 | __TemplateIcon.ico 10 | 11 | 12 | 13 | MauiView.razor 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ItemTemplates/MauiViewRazor/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/MauiViewRazor/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ItemTemplates/PartialClass/MyClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace $rootnamespace$ 8 | { 9 | public partial class $safeitemname$ 10 | { 11 | public $safeitemname$() 12 | { 13 | 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ItemTemplates/PartialClass/MyClass.vstemplate: -------------------------------------------------------------------------------- 1 | 2 | 3 | Class.cs 4 | Partial Class 5 | An empty partial class definition. 6 | CSharp 7 | 110 8 | __TemplateIcon.ico 9 | 10 | 11 | 12 | MyClass.cs 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/ItemTemplates/PartialClass/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ItemTemplates/PartialClass/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Create-Debug-Template.bat: -------------------------------------------------------------------------------- 1 | :: Creates a new NuGet package from the project file 2 | @echo off 3 | 4 | call Create-Template.bat Debug 5 | 6 | :end 7 | pause 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Create-Release-Template.bat: -------------------------------------------------------------------------------- 1 | :: Creates a new NuGet package from the project file 2 | @echo off 3 | 4 | call Create-Template.bat Release 5 | 6 | :end 7 | pause 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Install-Debug-Template.bat: -------------------------------------------------------------------------------- 1 | :: Installs the NuGet package 2 | @echo off 3 | 4 | call Install-Template.bat Debug 5 | 6 | :end 7 | pause 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Install-Release-Template.bat: -------------------------------------------------------------------------------- 1 | :: Installs the NuGet package 2 | @echo off 3 | 4 | call Install-Template.bat Release 5 | 6 | :end 7 | pause 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "Framework": { 5 | "longName": "framework" 6 | }, 7 | "application-id": { 8 | "shortName": "ap" 9 | }, 10 | "use-mvvm": { 11 | "shortName": "mvvm" 12 | }, 13 | "use-slnx": { 14 | "shortName": "slnx" 15 | }, 16 | "include-syncfusion-toolkit": { 17 | "shortName": "isft" 18 | } 19 | }, 20 | "usageExamples": [ 21 | "--framework net8.0", 22 | "-f net10.0" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/.template.config/ide/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/.template.config/ide/icon.png -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/App.razor.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | { 3 | public partial class App : BlazorBindingsApplication 4 | { 5 | #if Net9OrLater 6 | public App() 7 | #else 8 | public App(IServiceProvider services) : base(services) 9 | #endif 10 | { 11 | 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/AppShell.razor: -------------------------------------------------------------------------------- 1 |  2 | @* Define Shell Flyout and Tab Items *@ 3 | 4 | 5 | 6 | 7 | 8 | @code { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/AppShell.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | { 3 | public partial class AppShell : Shell 4 | { 5 | public AppShell() 6 | { 7 | InitializeComponent(); 8 | #if Mvvm 9 | BindingContext = AppService.GetRequiredService(); 10 | #endif 11 | // Register the routes of the detail pages 12 | RegisterRoutes(); 13 | } 14 | 15 | private static void RegisterRoutes() 16 | { 17 | Routing.RegisterRoute("newevent", typeof(NewEventPage)); 18 | } 19 | #if (!Mvvm) 20 | 21 | private async void OnMenuItemClicked(object sender, EventArgs e) 22 | { 23 | await Current.GoToAsync("//login"); 24 | } 25 | #endif 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Converters/HybridWebViewRawMessageReceivedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.CodeAnalysis; 2 | using System.Globalization; 3 | 4 | namespace MauiApp._1.Converters 5 | { 6 | [AcceptEmptyServiceProvider] 7 | public partial class HybridWebViewRawMessageReceivedEventArgsConverter : BaseConverterOneWay 8 | { 9 | public override object? DefaultConvertReturnValue { get; set; } = null; 10 | 11 | [return: NotNullIfNotNull(nameof(value))] 12 | public override object? ConvertFrom(HybridWebViewRawMessageReceivedEventArgs? value, CultureInfo? culture) 13 | => value switch 14 | { 15 | null => null, 16 | _ => value.Message 17 | }; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Data/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | #if RazorLib 2 | namespace MauiApp._1.RazorLib.Data 3 | #else 4 | namespace MauiApp._1.Data 5 | #endif 6 | { 7 | public class WeatherForecast 8 | { 9 | public DateTime Date { get; set; } 10 | 11 | public int TemperatureC { get; set; } 12 | 13 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 14 | 15 | public string? Summary { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Data/WeatherForecastService.cs: -------------------------------------------------------------------------------- 1 | #if RazorLib 2 | namespace MauiApp._1.RazorLib.Data 3 | #else 4 | namespace MauiApp._1.Data 5 | #endif 6 | { 7 | public class WeatherForecastService 8 | { 9 | private static readonly string[] Summaries = 10 | [ 11 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 12 | ]; 13 | 14 | public Task GetForecastAsync(DateTime startDate) 15 | { 16 | return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast 17 | { 18 | Date = startDate.AddDays(index), 19 | TemperatureC = Random.Shared.Next(-20, 55), 20 | Summary = Summaries[Random.Shared.Next(Summaries.Length)] 21 | }).ToArray()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Exceptions/RouteNotFoundException.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.Serialization; 2 | 3 | namespace MauiApp._1.Exceptions 4 | { 5 | [Serializable] 6 | public class RouteNotFoundException : Exception 7 | { 8 | public RouteNotFoundException() { } 9 | public RouteNotFoundException(string message) : base(message) { } 10 | public RouteNotFoundException(string message, Exception inner) : base(message, inner) { } 11 | [Obsolete] 12 | protected RouteNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Exceptions/TypeNotRegisteredException.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.Serialization; 2 | 3 | namespace MauiApp._1.Exceptions 4 | { 5 | [Serializable] 6 | public class TypeNotRegisteredException : Exception 7 | { 8 | public TypeNotRegisteredException() { } 9 | public TypeNotRegisteredException(string message) : base(message) { } 10 | public TypeNotRegisteredException(string message, Exception inner) : base(message, inner) { } 11 | [Obsolete] 12 | protected TypeNotRegisteredException(SerializationInfo info, StreamingContext context) : base(info, context) { } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Helpers/VisualStateHelper.markup.cs: -------------------------------------------------------------------------------- 1 | #if Mvu 2 | using Microsoft.Maui.Controls; 3 | 4 | #endif 5 | namespace MauiApp._1.Helpers 6 | { 7 | public static class VisualStateHelper 8 | { 9 | public static MC.VisualStateGroupList CreateVisualStateGroupList(IEnumerable visualStateGroups) 10 | { 11 | var visualStateGroupList = new MC.VisualStateGroupList(); 12 | 13 | foreach (var visualStateGroup in visualStateGroups) 14 | { 15 | visualStateGroupList.Add(visualStateGroup); 16 | } 17 | 18 | return visualStateGroupList; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Main.razor: -------------------------------------------------------------------------------- 1 | @*#if (RazorLib)*@ 2 | 3 | @*#else*@ 4 | 5 | @*#endif*@ 6 | 7 | 8 | 9 | 10 | 11 |

Sorry, there's nothing at this address.

12 |
13 |
14 |
15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | { 3 | public partial class MainWindow : Window 4 | { 5 | public MainWindow() => InitializeComponent(); 6 | 7 | public MainWindow(Page page) : base(page) => InitializeComponent(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/MauiApp.1.RazorLib/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.AspNetCore.Components.Web 5 | @using Microsoft.AspNetCore.Components.Web.Virtualization 6 | @using Microsoft.JSInterop 7 | 8 | @using MauiApp.1.RazorLib 9 | @using MauiApp.1.RazorLib.Data 10 | @using MauiApp.1.RazorLib.Pages 11 | @using MauiApp.1.RazorLib.Shared 12 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/MauiApp.1.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {}, 8 | "extensions": { 9 | "recommendations": [ 10 | "ms-dotnettools.csharp", 11 | "ms-dotnettools.dotnet-maui", 12 | "VisualStudioExptTeam.vscodeintellicode" 13 | ] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/MauiApp.1.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/MauiApp.1/_Imports.razor: -------------------------------------------------------------------------------- 1 | @*#if (Razor)*@ 2 | @using BlazorBindings.Maui 3 | @using BlazorBindings.Maui.Elements 4 | @using MC = Microsoft.Maui.Controls 5 | 6 | @*#endif*@ 7 | @using System.Net.Http 8 | @using System.Reflection 9 | @using Microsoft.AspNetCore.Components.Forms 10 | @using Microsoft.AspNetCore.Components.Routing 11 | @using Microsoft.AspNetCore.Components.Web 12 | @using Microsoft.AspNetCore.Components.Web.Virtualization 13 | @using Microsoft.JSInterop 14 | 15 | @using MauiApp._1 16 | @*#if (Hybrid)*@ 17 | @*#if (RazorLib)*@ 18 | @using MauiApp._1.RazorLib.Data 19 | @using MauiApp._1.RazorLib.Pages 20 | @using MauiApp._1.RazorLib.Shared 21 | @*#else*@ 22 | @using MauiApp._1.Data 23 | @using MauiApp._1.Pages 24 | @using MauiApp._1.Shared 25 | @*#endif*@ 26 | @*#endif*@ 27 | @using MauiApp._1.Views 28 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 |

Counter

4 | 5 |

Current count: @currentCount

6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Pages/Home.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |

Hello, world!

4 | 5 | Welcome to your new app. 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Content.PM; 3 | using Android.OS; 4 | 5 | namespace MauiApp._1 6 | { 7 | [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)] 8 | public class MainActivity : MauiAppCompatActivity 9 | { 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Android/MainApplication.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Runtime; 3 | 4 | namespace MauiApp._1 5 | { 6 | [Application] 7 | public class MainApplication : MauiApplication 8 | { 9 | public MainApplication(IntPtr handle, JniHandleOwnership ownership) 10 | : base(handle, ownership) 11 | { 12 | } 13 | 14 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #512BD4 4 | #2B0B98 5 | #2B0B98 6 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/MacCatalyst/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace MauiApp._1 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/MacCatalyst/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace MauiApp._1 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Tizen/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Maui; 3 | using Microsoft.Maui.Hosting; 4 | 5 | namespace MauiApp._1 6 | { 7 | class Program : MauiApplication 8 | { 9 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 10 | 11 | static void Main(string[] args) 12 | { 13 | var app = new Program(); 14 | app.Run(args); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Tizen/tizen-manifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | appicon.xhigh.png 7 | 8 | 9 | 10 | 11 | http://tizen.org/privilege/internet 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Windows/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/Windows/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | true/PM 12 | PerMonitorV2, PerMonitor 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace MauiApp._1 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Platforms/iOS/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace MauiApp._1 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "profiles": { 4 | "Windows Machine": { 5 | //#if (Unpackaged) 6 | "commandName": "Project", 7 | //#else 8 | "commandName": "MsixPackage", 9 | //#endif 10 | "nativeDebugging": false 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Resources/Fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/Resources/Fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Resources/Fonts/OpenSans-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/Resources/Fonts/OpenSans-SemiBold.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Resources/Raw/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "MauiAsset": 3 | 4 | 5 | 6 | These files will be deployed with you package and will be accessible using Essentials: 7 | 8 | async Task LoadMauiAsset() 9 | { 10 | using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); 11 | using var reader = new StreamReader(stream); 12 | 13 | var contents = reader.ReadToEnd(); 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Resources/Raw/hybridroot/css/app.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 3 | } 4 | 5 | .content { 6 | padding-top: 1.1rem; 7 | } 8 | 9 | ::placeholder { 10 | color: #c8c8c8; 11 | } 12 | 13 | .btn-primary:disabled { 14 | color: #141414; 15 | background-color: #c8c8c8; 16 | } 17 | 18 | h3:focus { 19 | outline: none; 20 | } 21 | 22 | .valid.modified:not([type=checkbox]) { 23 | outline: 1px solid #26b050; 24 | } 25 | 26 | .invalid { 27 | outline: 1px solid #e50000; 28 | } 29 | 30 | .validation-message { 31 | color: #e50000; 32 | } 33 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Resources/appicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Services/IDialogService.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Services 2 | { 3 | public interface IDialogService 4 | { 5 | Task DisplayAlertAsync(string title, string message, string cancel); 6 | 7 | Task DisplayAlertAsync(string title, string message, string accept, string cancel); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Services/INavigationService.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Services 2 | { 3 | public interface INavigationService 4 | { 5 | #if Shell 6 | Task GoToAsync(string route); 7 | 8 | Task GoBackAsync(); 9 | #else 10 | Task PushAsync(string route); 11 | 12 | Task PopAsync(); 13 | 14 | Task PopToRootAsync(); 15 | 16 | Task PushModalAsync(string route); 17 | 18 | Task PopModalAsync(); 19 | #endif 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | @*#if (!RazorLib)*@ 3 | @inject IAppInfo appInfo 4 | @*#endif*@ 5 | 6 |
7 | 10 | 11 |
12 |
13 | About 14 |
15 | 16 |
17 | @Body 18 |
19 |
20 |
21 | 22 | @code { 23 | private string? divStyle; 24 | 25 | protected override void OnInitialized() 26 | { 27 | base.OnInitialized(); 28 | @*#if (RazorLib)*@ 29 | 30 | divStyle = "background-color: #f7f7f7;"; 31 | @*#else*@ 32 | 33 | divStyle = appInfo.RequestedTheme switch 34 | { 35 | AppTheme.Dark => "background-color: #1f1f1f;", 36 | _ => "background-color: #f7f7f7;" 37 | }; 38 | @*#endif*@ 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/ViewModels/AppViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.ViewModels 2 | { 3 | public partial class AppViewModel(IDialogService dialogService, INavigationService navigationService) 4 | : BaseViewModel(dialogService, navigationService) 5 | { 6 | [RelayCommand] 7 | private Task LogoutAsync() => NavigationService.GoToAsync("//login"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/ViewModels/EventsViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.ViewModels 2 | { 3 | public partial class EventsViewModel(IDialogService dialogService, INavigationService navigationService) 4 | : BaseViewModel(dialogService, navigationService) 5 | { 6 | [RelayCommand] 7 | #if (Hierarchical || Tabbed) 8 | private Task AddEventAsync() => NavigationService.PushModalAsync("newevent"); 9 | #else 10 | private Task AddEventAsync() => NavigationService.GoToAsync("newevent"); 11 | #endif 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/ViewModels/LoginViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.ViewModels 2 | { 3 | public partial class LoginViewModel(IDialogService dialogService, INavigationService navigationService) 4 | : BaseViewModel(dialogService, navigationService) 5 | { 6 | [RelayCommand] 7 | private Task LoginAsync() => NavigationService.GoToAsync("//home"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/ViewModels/SearchViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.ViewModels 2 | { 3 | public partial class SearchViewModel(IDialogService dialogService, INavigationService navigationService) 4 | : BaseViewModel(dialogService, navigationService) 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/ViewModels/SettingsViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.ViewModels 2 | { 3 | public partial class SettingsViewModel(IDialogService dialogService, INavigationService navigationService) 4 | : BaseViewModel(dialogService, navigationService) 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Views/LoginPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Views 2 | { 3 | public partial class LoginPage : ContentPage 4 | { 5 | #if Mvvm 6 | public LoginPage(LoginViewModel viewModel) 7 | { 8 | InitializeComponent(); 9 | viewModel.Title = "Login"; 10 | BindingContext = viewModel; 11 | } 12 | #else 13 | public LoginPage() 14 | { 15 | InitializeComponent(); 16 | } 17 | 18 | private async void OnLoginClicked(object sender, EventArgs e) 19 | { 20 | await Shell.Current.GoToAsync("//home"); 21 | } 22 | #endif 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Views/SearchPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Views 2 | { 3 | public partial class SearchPage : ContentPage 4 | { 5 | #if Mvvm 6 | #if Tabbed 7 | public SearchPage() 8 | #else 9 | public SearchPage(SearchViewModel viewModel) 10 | #endif 11 | { 12 | InitializeComponent(); 13 | #if Tabbed 14 | var viewModel = AppService.GetRequiredService(); 15 | #endif 16 | viewModel.Title = "Search"; 17 | BindingContext = viewModel; 18 | } 19 | #else 20 | public SearchPage() 21 | { 22 | InitializeComponent(); 23 | } 24 | #endif 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Views/SettingsPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Views 2 | { 3 | public partial class SettingsPage : ContentPage 4 | { 5 | #if Mvvm 6 | #if Tabbed 7 | public SettingsPage() 8 | #else 9 | public SettingsPage(SettingsViewModel viewModel) 10 | #endif 11 | { 12 | InitializeComponent(); 13 | #if Tabbed 14 | var viewModel = AppService.GetRequiredService(); 15 | #endif 16 | viewModel.Title = "Settings"; 17 | BindingContext = viewModel; 18 | } 19 | #else 20 | public SettingsPage() 21 | { 22 | InitializeComponent(); 23 | } 24 | #endif 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/Views/VersionTemplate.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Views 2 | { 3 | public partial class VersionTemplate : ContentView 4 | { 5 | public VersionTemplate() => InitializeComponent(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppCS/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppCS/wwwroot/favicon.ico -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "Framework": { 5 | "longName": "framework" 6 | }, 7 | "application-id": { 8 | "shortName": "ap" 9 | }, 10 | "use-slnx": { 11 | "shortName": "slnx" 12 | }, 13 | "include-syncfusion-toolkit": { 14 | "shortName": "isft" 15 | } 16 | }, 17 | "usageExamples": [ 18 | "--framework net8.0", 19 | "-f net10.0" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/.template.config/ide/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/.template.config/ide/icon.png -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/AppBuilderExtensions.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.Extensions 2 | 3 | open System 4 | open Microsoft.Extensions.DependencyInjection 5 | open Microsoft.Extensions.Logging 6 | open Microsoft.Maui.Hosting 7 | open System.Runtime.CompilerServices 8 | 9 | [] 10 | type AppBuilderExtensions = 11 | [] 12 | static member inline ConfigureServices(builder: MauiAppBuilder, configureDelegate: Action) = 13 | configureDelegate.Invoke(builder.Services) 14 | builder 15 | 16 | #if Hybrid 17 | [] 18 | static member inline ConfigureBlazorWebView(builder: MauiAppBuilder) = 19 | builder.Services.AddMauiBlazorWebView() |> ignore 20 | builder 21 | 22 | #endif 23 | [] 24 | static member inline AddDebugLog(builder: MauiAppBuilder) = 25 | builder.Logging.AddDebug() |> ignore 26 | builder 27 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Data/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.RazorLib.Data 2 | { 3 | public class WeatherForecast 4 | { 5 | public DateTime Date { get; init; } 6 | 7 | public int TemperatureC { get; init; } 8 | 9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 10 | 11 | public string? Summary { get; init; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Data/WeatherForecastService.cs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.RazorLib.Data 2 | { 3 | public class WeatherForecastService 4 | { 5 | private static readonly string[] Summaries = 6 | [ 7 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 8 | ]; 9 | 10 | public Task GetForecastAsync(DateTime startDate) 11 | { 12 | return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast 13 | { 14 | Date = startDate.AddDays(index), 15 | TemperatureC = Random.Shared.Next(-20, 55), 16 | Summary = Summaries[Random.Shared.Next(Summaries.Length)] 17 | }).ToArray()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Main.razor: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 |

Counter

4 | 5 |

Current count: @currentCount

6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() => currentCount++; 13 | } 14 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Pages/Home.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |

Hello, world!

4 | 5 | Welcome to your new app. 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | @* @inject IAppInfo appInfo *@ 3 | 4 |
5 | 8 | 9 |
10 |
11 | About 12 |
13 | 14 |
15 | @Body 16 |
17 |
18 |
19 | 20 | @code { 21 | private string? divStyle; 22 | 23 | protected override void OnInitialized() 24 | { 25 | base.OnInitialized(); 26 | 27 | divStyle = "background-color: #f7f7f7;"; 28 | /*divStyle = appInfo.RequestedTheme switch 29 | { 30 | AppTheme.Dark => "background-color: #1f1f1f;", 31 | _ => "background-color: #f7f7f7;" 32 | };*/ 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.RazorLib/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.AspNetCore.Components.Web 5 | @using Microsoft.AspNetCore.Components.Web.Virtualization 6 | @using Microsoft.JSInterop 7 | @* @using Microsoft.Maui.Essentials *@ 8 | 9 | @using MauiApp._1.RazorLib 10 | @using MauiApp._1.RazorLib.Data 11 | @using MauiApp._1.RazorLib.Pages 12 | @using MauiApp._1.RazorLib.Shared 13 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {}, 8 | "extensions": { 9 | "recommendations": [ 10 | "ms-dotnettools.csharp", 11 | "ms-dotnettools.dotnet-maui", 12 | "VisualStudioExptTeam.vscodeintellicode" 13 | ] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/MauiApp.1.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Android/MainActivity.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open Android.App 4 | open Android.Content.PM 5 | open Microsoft.Maui 6 | 7 | [] 16 | type MainActivity() = 17 | inherit MauiAppCompatActivity() 18 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Android/MainApplication.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open Android.App 4 | open Microsoft.Maui 5 | 6 | [] 7 | type MainApplication(handle, ownership) = 8 | inherit MauiApplication(handle, ownership) 9 | 10 | override _.CreateMauiApp() = MauiProgram.CreateMauiApp() 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #512BD4 4 | #2B0B98 5 | #2B0B98 6 | 7 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/MacCatalyst/AppDelegate.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open Foundation 4 | open Microsoft.Maui 5 | 6 | [] 7 | type AppDelegate() = 8 | inherit MauiUIApplicationDelegate() 9 | 10 | override this.CreateMauiApp() = MauiProgram.CreateMauiApp() 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/MacCatalyst/Program.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open UIKit 4 | 5 | module Program = 6 | [] 7 | let main args = 8 | UIApplication.Main(args, null, typeof) 9 | 0 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Tizen/Main.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open System 4 | open Microsoft.Maui 5 | open Microsoft.Maui.Hosting 6 | 7 | type Program() = 8 | inherit MauiApplication() 9 | 10 | override this.CreateMauiApp() = MauiProgram.CreateMauiApp() 11 | 12 | module Program = 13 | [] 14 | let main args = 15 | let app = new Program() 16 | app.Run(args) 17 | 0 18 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Tizen/tizen-manifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | appicon.xhigh.png 7 | 8 | 9 | 10 | 11 | http://tizen.org/privilege/internet 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Windows/App.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.WinUI 2 | 3 | /// 4 | /// Provides application-specific behavior to supplement the default Application class. 5 | /// 6 | type App() = 7 | inherit FSharp.Maui.WinUICompat.App() 8 | 9 | override this.CreateMauiApp() = MauiApp._1.MauiProgram.CreateMauiApp() 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Windows/Main.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1.WinUI 2 | 3 | open System 4 | 5 | module Program = 6 | [] 7 | let main args = 8 | do FSharp.Maui.WinUICompat.Program.Main(args, typeof) 9 | 0 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/Windows/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | true/PM 12 | PerMonitorV2, PerMonitor 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/iOS/AppDelegate.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open Foundation 4 | open Microsoft.Maui 5 | 6 | [] 7 | type AppDelegate() = 8 | inherit MauiUIApplicationDelegate() 9 | 10 | override _.CreateMauiApp() = MauiProgram.CreateMauiApp() 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Platforms/iOS/Program.fs: -------------------------------------------------------------------------------- 1 | namespace MauiApp._1 2 | 3 | open UIKit 4 | 5 | module Program = 6 | [] 7 | let main args = 8 | UIApplication.Main(args, null, typeof) 9 | 0 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "profiles": { 4 | "Windows Machine": { 5 | "commandName": "MsixPackage", 6 | "nativeDebugging": false 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Resources/AppIcon/appicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Resources/Fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/Resources/Fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Resources/Fonts/OpenSans-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/Resources/Fonts/OpenSans-Semibold.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/Resources/Raw/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories). Deployment of the asset to your application 3 | is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. 4 | 5 | 6 | 7 | These files will be deployed with you package and will be accessible using Essentials: 8 | 9 | async Task LoadMauiAsset() 10 | { 11 | using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); 12 | using var reader = new StreamReader(stream); 13 | 14 | var contents = reader.ReadToEnd(); 15 | } 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/font-awesome/webfonts/fa-v4compatibility.woff2 -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiAppFS/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiAppFS/wwwroot/favicon.ico -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiBlazorWebView/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiBlazorWebView/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiBlazorWebView/MauiBlazorWebView.1Page.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace 3 | #else 4 | namespace MyApp.Namespace 5 | #endif 6 | { 7 | public partial class MauiBlazorWebView__1Page : ContentPage 8 | { 9 | public MauiBlazorWebView__1Page() 10 | { 11 | InitializeComponent(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiBlazorWebViewCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiBlazorWebViewCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "Framework": { 5 | "longName": "framework" 6 | }, 7 | "use-slnx": { 8 | "shortName": "slnx" 9 | }, 10 | "include-syncfusion-toolkit": { 11 | "shortName": "isft" 12 | } 13 | }, 14 | "usageExamples": [ 15 | "--framework net8.0", 16 | "-f net10.0" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/.template.config/ide/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/MauiClassLib/.template.config/ide/icon.png -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | #if UseMaui 6 | public partial void DoWork(); 7 | 8 | #endif 9 | //-:cnd:noEmit 10 | #if ANDROID 11 | // Code block for Android 12 | #elif IOS 13 | // Code block for iOS 14 | #elif MACCATALYST 15 | // Code block for Mac Catalyst 16 | #elif TIZEN 17 | // Code block for Tizen 18 | #elif WINDOWS 19 | // Code block for Windows 20 | #else 21 | //+:cnd:noEmit 22 | // Code block for unsupported Platforms 23 | #if UseMaui 24 | public partial void DoWork() 25 | { 26 | // Could even be like the below exception 27 | //throw new PlatformNotSupportedException(); 28 | } 29 | #endif 30 | //-:cnd:noEmit 31 | #endif 32 | //+:cnd:noEmit 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/MauiClassLib.1.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {}, 8 | "extensions": { 9 | "recommendations": [ 10 | "ms-dotnettools.csharp", 11 | "ms-dotnettools.dotnet-maui", 12 | "VisualStudioExptTeam.vscodeintellicode" 13 | ] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/MauiClassLib.1.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Android/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | public partial void DoWork() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Android/PlatformClass1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public class PlatformClass1 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/MacCatalyst/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | public partial void DoWork() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/MacCatalyst/PlatformClass1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public class PlatformClass1 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Tizen/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | public partial void DoWork() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Tizen/PlatformClass1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public class PlatformClass1 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Windows/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | public partial void DoWork() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/Windows/PlatformClass1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public class PlatformClass1 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/iOS/Class1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public partial class Class1 4 | { 5 | public partial void DoWork() 6 | { 7 | 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiClassLib/Platforms/iOS/PlatformClass1.cs: -------------------------------------------------------------------------------- 1 | namespace MauiClassLib._1 2 | { 3 | public class PlatformClass1 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItem/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItem/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItem/MauiItem.1.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace; 3 | #else 4 | namespace MyApp.Namespace; 5 | #endif 6 | 7 | #if IsGeneric 8 | public partial class MauiItem__1 : ContentView 9 | #else 10 | public partial class MauiItem__1 : ContentView 11 | #endif 12 | { 13 | public MauiItem__1() 14 | { 15 | InitializeComponent(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItemCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItemCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiItemCS/MauiItem.1.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace; 3 | #else 4 | namespace MyApp.Namespace; 5 | #endif 6 | 7 | #if IsGeneric 8 | public partial class MauiItem__1 : ContentPage 9 | #else 10 | public partial class MauiItem__1 : ContentPage 11 | #endif 12 | { 13 | public MauiItem__1() 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvm/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvm/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvm/Maui.1Page.xaml.cs: -------------------------------------------------------------------------------- 1 | #if (!SameFolder) 2 | using MyApp.RootNamespace.ViewModels; 3 | 4 | #endif 5 | #if SameFolder 6 | #if RootFolder 7 | namespace MyApp.RootNamespace 8 | #else 9 | namespace MyApp.Namespace 10 | #endif 11 | #else 12 | namespace MyApp.RootNamespace.Views 13 | #endif 14 | { 15 | public partial class Maui__1Page : ContentPage 16 | { 17 | public Maui__1Page(Maui__1ViewModel viewModel) 18 | { 19 | InitializeComponent(); 20 | BindingContext = viewModel; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvm/Maui.1ViewModel.cs: -------------------------------------------------------------------------------- 1 | #if SameFolder 2 | #if RootFolder 3 | namespace MyApp.RootNamespace 4 | #else 5 | namespace MyApp.Namespace 6 | #endif 7 | #else 8 | namespace MyApp.RootNamespace.ViewModels 9 | #endif 10 | { 11 | public partial class Maui__1ViewModel : BaseViewModel 12 | { 13 | public Maui__1ViewModel() 14 | { 15 | 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvmCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvmCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiMvvmCS/Maui.1ViewModel.cs: -------------------------------------------------------------------------------- 1 | #if SameFolder 2 | #if RootFolder 3 | namespace MyApp.RootNamespace 4 | #else 5 | namespace MyApp.Namespace 6 | #endif 7 | #else 8 | namespace MyApp.RootNamespace.ViewModels 9 | #endif 10 | { 11 | public partial class Maui__1ViewModel : BaseViewModel 12 | { 13 | public Maui__1ViewModel() 14 | { 15 | 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPage/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPage/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPage/MauiPage.1Page.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace 3 | #else 4 | namespace MyApp.Namespace 5 | #endif 6 | { 7 | public partial class MauiPage__1Page : ContentPage 8 | { 9 | public MauiPage__1Page() 10 | { 11 | InitializeComponent(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageCS/MauiPage.1Page.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Maui.Graphics; 2 | 3 | #if RootFolder 4 | namespace MyApp.RootNamespace 5 | #else 6 | namespace MyApp.Namespace 7 | #endif 8 | { 9 | public partial class MauiPage__1Page : ContentPage 10 | { 11 | public MauiPage__1Page() 12 | { 13 | Content = new Grid() 14 | { 15 | Children = 16 | { 17 | new Label() 18 | { 19 | Text = "Welcome to .NET MAUI!!!", 20 | TextColor = Colors.Purple, 21 | FontSize = 18, 22 | HorizontalOptions = LayoutOptions.Center, 23 | VerticalOptions = LayoutOptions.Center 24 | } 25 | } 26 | }; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageRazor/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageRazor/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageRazor/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/template", 3 | "author": "Vijay Anand E G", 4 | "defaultName": "MauiPage1", 5 | "classifications": [ 6 | "MAUI", 7 | "Android", 8 | "iOS", 9 | "macOS", 10 | "Windows", 11 | "Razor" 12 | ], 13 | "identity": "VijayAnand.MauiPageRazor", 14 | "groupIdentity": "VijayAnand.MauiTemplates.Page.Razor", 15 | "description": "An item template for .NET MAUI ContentPage in Razor", 16 | "name": ".NET MAUI ContentPage (Razor)", 17 | "shortName": "maui-page-razor", 18 | "sourceName": "MauiPage.1", 19 | "primaryOutputs": [ 20 | { 21 | "path": "MauiPage.1Page.razor" 22 | } 23 | ], 24 | "tags": { 25 | "language": "C#", 26 | "type": "item" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiPageRazor/MauiPage.1Page.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 | 4 | 6 | 7 | @code { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiResDict/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiResDict/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiResDict/MauiResDict.1.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace 3 | #else 4 | namespace MyApp.Namespace 5 | #endif 6 | { 7 | public partial class MauiResDict__1 : ResourceDictionary 8 | { 9 | public MauiResDict__1() 10 | { 11 | InitializeComponent(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShell/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShell/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShell/MauiShell.1Shell.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace 3 | #else 4 | namespace MyApp.Namespace 5 | #endif 6 | { 7 | public partial class MauiShell__1Shell : Shell 8 | { 9 | public MauiShell__1Shell() 10 | { 11 | InitializeComponent(); 12 | } 13 | 14 | #if AddComments 15 | // UnComment the below method to handle Shell Menu item click event 16 | // And ensure appropriate page definitions are available for it work as expected 17 | #endif 18 | //private async void OnMenuItemClicked(object sender, EventArgs e) 19 | //{ 20 | // await Current.GoToAsync("//login"); 21 | //} 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShellCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShellCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShellRazor/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShellRazor/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiShellRazor/MauiShell.1Shell.razor: -------------------------------------------------------------------------------- 1 |  2 | @* Flyout Items *@ 3 | @* 4 | 5 | 6 | 7 | *@ 8 | 9 | @* Menu Items *@ 10 | @* *@ 11 | 12 | @* Tab Items *@ 13 | @* 14 | 15 | 16 | 17 | *@ 18 | 19 | 20 | @code { 21 | //void OnMenuItemClicked() 22 | //{ 23 | 24 | //} 25 | } 26 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiView/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiView/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiView/MauiView.1View.xaml.cs: -------------------------------------------------------------------------------- 1 | #if RootFolder 2 | namespace MyApp.RootNamespace 3 | #else 4 | namespace MyApp.Namespace 5 | #endif 6 | { 7 | public partial class MauiView__1View : ContentView 8 | { 9 | public MauiView__1View() 10 | { 11 | InitializeComponent(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewCS/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewCS/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewCS/MauiView.1View.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Maui.Graphics; 2 | 3 | #if RootFolder 4 | namespace MyApp.RootNamespace 5 | #else 6 | namespace MyApp.Namespace 7 | #endif 8 | { 9 | public partial class MauiView__1View : ContentView 10 | { 11 | public MauiView__1View() 12 | { 13 | Content = new Grid() 14 | { 15 | Children = 16 | { 17 | new Label() 18 | { 19 | Text = "Welcome to .NET MAUI!!!", 20 | TextColor = Colors.Purple, 21 | FontSize = 18, 22 | HorizontalOptions = LayoutOptions.Center, 23 | VerticalOptions = LayoutOptions.Center 24 | } 25 | } 26 | }; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewRazor/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewRazor/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewRazor/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/template", 3 | "author": "Vijay Anand E G", 4 | "defaultName": "MauiView1", 5 | "classifications": [ 6 | "MAUI", 7 | "Android", 8 | "iOS", 9 | "macOS", 10 | "Windows", 11 | "Razor" 12 | ], 13 | "identity": "VijayAnand.MauiViewRazor", 14 | "groupIdentity": "VijayAnand.MauiTemplates.View.Razor", 15 | "description": "An item template for .NET MAUI ContentView in Razor", 16 | "name": ".NET MAUI ContentView (Razor)", 17 | "shortName": "maui-view-razor", 18 | "sourceName": "MauiView.1", 19 | "primaryOutputs": [ 20 | { 21 | "path": "MauiView.1View.razor" 22 | } 23 | ], 24 | "tags": { 25 | "language": "C#", 26 | "type": "item" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MauiViewRazor/MauiView.1View.razor: -------------------------------------------------------------------------------- 1 |  2 | 4 | 5 | @code { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MyClass/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "namespace": { 5 | "shortName": "na" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/MyClass/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/PackageName.txt: -------------------------------------------------------------------------------- 1 | VijayAnand.MauiTemplates 2 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/PackageVersion.txt: -------------------------------------------------------------------------------- 1 | 7.10.0 2 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host", 3 | "symbolInfo": { 4 | "Framework": { 5 | "longName": "framework" 6 | }, 7 | "use-slnx": { 8 | "shortName": "slnx" 9 | }, 10 | "include-syncfusion-toolkit": { 11 | "shortName": "isft" 12 | } 13 | }, 14 | "usageExamples": [ 15 | "--framework net8.0", 16 | "-f net10.0" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/.template.config/ide/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/SharedClassLib/.template.config/ide/icon.png -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/Imports.forms.cs: -------------------------------------------------------------------------------- 1 | global using Xamarin.Forms; 2 | global using Xamarin.Forms.Xaml; 3 | 4 | #if AddFormsMaps 5 | global using Xamarin.Forms.Maps; 6 | 7 | #endif 8 | #if AddFormsEssentials 9 | global using Xamarin.Essentials; 10 | 11 | #endif 12 | #if AddFormsToolkit 13 | global using Xamarin.CommunityToolkit.Behaviors; 14 | global using Xamarin.CommunityToolkit.Converters; 15 | global using Xamarin.CommunityToolkit.Effects; 16 | global using Xamarin.CommunityToolkit.ObjectModel; 17 | global using Xamarin.CommunityToolkit.UI.Views; 18 | 19 | #endif 20 | #if AddFormsMarkup 21 | global using Xamarin.CommunityToolkit.Markup; 22 | 23 | // Static 24 | global using static Xamarin.CommunityToolkit.Markup.GridRowsColumns; 25 | #endif 26 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/Imports.shared.cs: -------------------------------------------------------------------------------- 1 | #if AddMvvmToolkit 2 | global using CommunityToolkit.Mvvm.ComponentModel; 3 | global using CommunityToolkit.Mvvm.Input; 4 | global using CommunityToolkit.Mvvm.Messaging; 5 | 6 | #endif 7 | #if AddSharedToolkit 8 | global using VijayAnand.Toolkit.Markup; 9 | 10 | global using static VijayAnand.Toolkit.Markup.ResourceHelper; 11 | global using static VijayAnand.Toolkit.Markup.VisualStateHelper; 12 | 13 | #endif 14 | //-:cnd:noEmit 15 | // Based on constants defined in the project file 16 | // Can also be defined using TargetFrameworkVersion like NETSTANDARD2_0, NETSTANDARD2_0_OR_GREATER, 17 | // NET6_0, NET6_0_OR_GREATER, but requires certain changes to the project file while referencing it. 18 | #if FORMS 19 | // Xamarin.Forms specific using statements 20 | #endif 21 | 22 | #if MAUI 23 | // .NET MAUI specific using statements 24 | #endif 25 | //+:cnd:noEmit 26 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/SharedClassLib.1.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {}, 8 | "extensions": { 9 | "recommendations": [ 10 | "ms-dotnettools.csharp", 11 | "ms-dotnettools.dotnet-maui", 12 | "VisualStudioExptTeam.vscodeintellicode" 13 | ] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/SharedClassLib/SharedClassLib.1.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Slnx/.template.config/dotnetcli.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/dotnetcli.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Slnx/.template.config/ide.host.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/vs-2017.3.host" 3 | } 4 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Slnx/.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/template", 3 | "author": "Vijay Anand E G", 4 | "defaultName": "Solution1", 5 | "classifications": [ 6 | "Solution", 7 | "SLNX" 8 | ], 9 | "identity": "VijayAnand.Slnx", 10 | "groupIdentity": "VijayAnand.MauiTemplates.Slnx", 11 | "description": "A XML-based solution file (slnx) item template.", 12 | "name": "XML-based Solution file (slnx)", 13 | "shortName": "slnx", 14 | "sourceName": "Slnx.1", 15 | "primaryOutputs": [ 16 | { 17 | "path": "Slnx.1.slnx" 18 | } 19 | ], 20 | "tags": { 21 | "language": "XML", 22 | "type": "item" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Slnx/Slnx.1.slnx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 8 | 9 | 10 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/Uninstall-Template.bat: -------------------------------------------------------------------------------- 1 | :: Removes the installed project template 2 | @echo off 3 | 4 | :: Package Name 5 | 6 | if not exist PackageName.txt (call Error "Package name file not available." & goto end) 7 | 8 | set /P packageName= 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/MauiTemplatesCLI/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/MauiTemplatesCLI/icon.png -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/App.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class App : Application 4 | { 5 | public App() 6 | { 7 | InitializeComponent(); 8 | 9 | MainPage = new MainPage(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class MainPage : ContentPage 4 | { 5 | int count = 0; 6 | 7 | public MainPage() 8 | { 9 | InitializeComponent(); 10 | } 11 | 12 | private void OnCounterClicked(object sender, EventArgs e) 13 | { 14 | count++; 15 | CounterLabel.Text = $"Current count: {count}"; 16 | 17 | SemanticScreenReader.Announce(CounterLabel.Text); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/MauiProgram.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public static class MauiProgram 4 | { 5 | public static MauiApp CreateMauiApp() 6 | { 7 | var builder = MauiApp.CreateBuilder(); 8 | builder 9 | .UseMauiApp() 10 | .ConfigureFonts(fonts => 11 | { 12 | fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); 13 | }); 14 | 15 | return builder.Build(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/Android/MainApplication.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Runtime; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | [Application] 7 | public class MainApplication : MauiApplication 8 | { 9 | public MainApplication(IntPtr handle, JniHandleOwnership ownership) 10 | : base(handle, ownership) 11 | { 12 | } 13 | 14 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #512BD4 4 | #2B0B98 5 | #2B0B98 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/MacCatalyst/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/MacCatalyst/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/Windows/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/Windows/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | true/PM 12 | PerMonitorV2, PerMonitor 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Platforms/iOS/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "Windows Machine": { 4 | "commandName": "MsixPackage", 5 | "nativeDebugging": false 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Resources/Fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiApp/Resources/Fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/Resources/appicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiApp/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiApp/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiAppCS/Icon.png -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Imports.cs: -------------------------------------------------------------------------------- 1 | // Markup 2 | global using CommunityToolkit.Maui.Markup; 3 | global using VijayAnand.MauiToolkit.Markup; 4 | // Static 5 | global using static Microsoft.Maui.Graphics.Colors; 6 | global using static CommunityToolkit.Maui.Markup.GridRowsColumns; 7 | global using static VijayAnand.MauiToolkit.Markup.Utility; -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/MauiAppCS.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {} 8 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/MauiProgram.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.Logging; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | public static class MauiProgram 6 | { 7 | public static MauiApp CreateMauiApp() 8 | { 9 | var builder = MauiApp.CreateBuilder(); 10 | builder.UseMauiApp() 11 | .UseMauiCommunityToolkitMarkup() 12 | .ConfigureFonts(fonts => 13 | { 14 | fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); 15 | fonts.AddFont("OpenSans-SemiBold.ttf", "OpenSansSemiBold"); 16 | }); 17 | 18 | #if DEBUG 19 | builder.Logging.AddDebug(); 20 | #endif 21 | 22 | return builder.Build(); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Content.PM; 3 | using Android.OS; 4 | 5 | namespace $safeprojectname$ 6 | { 7 | [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)] 8 | public class MainActivity : MauiAppCompatActivity 9 | { 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Android/MainApplication.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Runtime; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | [Application] 7 | public class MainApplication : MauiApplication 8 | { 9 | public MainApplication(IntPtr handle, JniHandleOwnership ownership) 10 | : base(handle, ownership) 11 | { 12 | } 13 | 14 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #512BD4 4 | #2B0B98 5 | #2B0B98 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/MacCatalyst/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/MacCatalyst/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Tizen/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Maui; 3 | using Microsoft.Maui.Hosting; 4 | 5 | namespace $safeprojectname$ 6 | { 7 | class Program : MauiApplication 8 | { 9 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 10 | 11 | static void Main(string[] args) 12 | { 13 | var app = new Program(); 14 | app.Run(args); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Tizen/tizen-manifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | appicon.xhigh.png 7 | 8 | 9 | 10 | 11 | http://tizen.org/privilege/internet 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Windows/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/Windows/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | true/PM 12 | PerMonitorV2, PerMonitor 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Platforms/iOS/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "profiles": { 4 | "Windows Machine": { 5 | "commandName": "MsixPackage", 6 | "nativeDebugging": false 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/Colors.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class Colors : ResourceDictionary 4 | { 5 | public Colors() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/Fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiAppCS/Resources/Fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/Fonts/OpenSans-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiAppCS/Resources/Fonts/OpenSans-SemiBold.ttf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/Raw/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "MauiAsset": 3 | 4 | 5 | 6 | These files will be deployed with you package and will be accessible using Essentials: 7 | 8 | async Task LoadMauiAsset() 9 | { 10 | using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); 11 | using var reader = new StreamReader(stream); 12 | 13 | var contents = reader.ReadToEnd(); 14 | } 15 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/Styles.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class Styles : ResourceDictionary 4 | { 5 | public Styles() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/Resources/appicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiAppCS/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiAppCS/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/App.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class App : Application 4 | { 5 | public App() 6 | { 7 | InitializeComponent(); 8 | 9 | MainPage = new MainPage(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Data/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Data 2 | { 3 | public class WeatherForecast 4 | { 5 | public DateTime Date { get; set; } 6 | 7 | public int TemperatureC { get; set; } 8 | 9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 10 | 11 | public string Summary { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Data/WeatherForecastService.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$.Data 2 | { 3 | public class WeatherForecastService 4 | { 5 | private static readonly string[] Summaries = new[] 6 | { 7 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" 8 | }; 9 | 10 | public Task GetForecastAsync(DateTime startDate) 11 | { 12 | var rng = new Random(); 13 | return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast 14 | { 15 | Date = startDate.AddDays(index), 16 | TemperatureC = rng.Next(-20, 55), 17 | Summary = Summaries[rng.Next(Summaries.Length)] 18 | }).ToArray()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Main.razor: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace $safeprojectname$ 2 | { 3 | public partial class MainPage : ContentPage 4 | { 5 | public MainPage() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/MauiProgram.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components.WebView.Maui; 2 | using $safeprojectname$.Data; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public static class MauiProgram 7 | { 8 | public static MauiApp CreateMauiApp() 9 | { 10 | var builder = MauiApp.CreateBuilder(); 11 | builder 12 | .RegisterBlazorMauiWebView() 13 | .UseMauiApp() 14 | .ConfigureFonts(fonts => 15 | { 16 | fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); 17 | }); 18 | 19 | builder.Services.AddBlazorWebView(); 20 | builder.Services.AddSingleton(); 21 | 22 | return builder.Build(); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 |

Counter

4 | 5 |

Current count: @currentCount

6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |

Hello, world!

4 | 5 | Welcome to your new app. 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/Android/MainApplication.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Runtime; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | [Application] 7 | public class MainApplication : MauiApplication 8 | { 9 | public MainApplication(IntPtr handle, JniHandleOwnership ownership) 10 | : base(handle, ownership) 11 | { 12 | } 13 | 14 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #512BD4 4 | #2B0B98 5 | #2B0B98 6 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/MacCatalyst/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/MacCatalyst/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/Windows/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/Windows/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | true/PM 12 | PerMonitorV2, PerMonitor 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | 3 | namespace $safeprojectname$ 4 | { 5 | [Register(nameof(AppDelegate))] 6 | public class AppDelegate : MauiUIApplicationDelegate 7 | { 8 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); 9 | } 10 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Platforms/iOS/Program.cs: -------------------------------------------------------------------------------- 1 | using ObjCRuntime; 2 | using UIKit; 3 | 4 | namespace $safeprojectname$ 5 | { 6 | public class Program 7 | { 8 | // This is the main entry point of the application. 9 | static void Main(string[] args) 10 | { 11 | // if you want to use a different Application Delegate class from "AppDelegate" 12 | // you can specify it here. 13 | UIApplication.Main(args, null, typeof(AppDelegate)); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "Windows Machine": { 4 | "commandName": "MsixPackage", 5 | "nativeDebugging": false 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Resources/Fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/Resources/Fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Resources/appicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | 6 | 7 |
8 |
9 | About 10 |
11 | 12 |
13 | @Body 14 |
15 |
16 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/Shared/SurveyPrompt.razor: -------------------------------------------------------------------------------- 1 |  11 | 12 | @code { 13 | // Demonstrates how a parent component can supply parameters 14 | [Parameter] 15 | public string Title { get; set; } 16 | } 17 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.AspNetCore.Components.Web 5 | @using Microsoft.AspNetCore.Components.Web.Virtualization 6 | @using Microsoft.JSInterop 7 | @using $safeprojectname$ 8 | @using $safeprojectname$.Shared 9 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiBlazorApp/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiBlazorApp/wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $safeprojectname$ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | An unhandled error has occurred. 18 | Reload 19 | 🗙 20 |
21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiClassLib/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace $safeprojectname$ 8 | { 9 | public class Class1 10 | { 11 | #if ANDROID 12 | // Code block for Android 13 | #elif IOS 14 | // Code block for iOS 15 | #elif MACCATALYST 16 | // Code block for Mac Catalyst 17 | #elif WINDOWS 18 | // Code block for Windows 19 | #endif 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/ProjectTemplates/MauiClassLib/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egvijayanand/dotnet-maui-templates/3ad064510bb9b04e50b242105105acec01e3753a/src/ProjectTemplates/MauiClassLib/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/Scripts/class-cs.bat: -------------------------------------------------------------------------------- 1 | :: Partial Class (C#) Item Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo Partial Class (C#) template. 9 | echo. 10 | echo Requires a mandatory input: type name 11 | echo Takes an optional input: base type 12 | 13 | goto end 14 | 15 | :process 16 | 17 | set WorkingDirectory=%cd% 18 | 19 | set type_name=%1 20 | if "%2"=="" (set options=_) else (set options=%~2) 21 | 22 | if "%options%"=="_" (dotnet new class-cs -n %type_name%) else (if "%options:~0,1%"=="-" (dotnet new class-cs -n %type_name% %options% %~3 %~4 %~5 %~6 %~7 %~8 %~9) else (dotnet new class-cs -n %type_name% -b %options% %~3 %~4 %~5 %~6 %~7 %~8 %~9)) 23 | 24 | set WorkingDirectory= 25 | set type_name= 26 | set options= 27 | 28 | :end 29 | -------------------------------------------------------------------------------- /src/Scripts/maui-bwv-cs.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage with BlazorWebView (C#) Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage with BlazorWebView (C#) 9 | echo. 10 | echo Requires a mandatory input: item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set item_name=%1 19 | if "%2"=="" (set options=_) else (set options=%2) 20 | 21 | if "%options%"=="_" (dotnet new maui-bwv-cs -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-bwv-cs -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 22 | 23 | set WorkingDirectory= 24 | set item_name= 25 | set options= 26 | 27 | :end 28 | -------------------------------------------------------------------------------- /src/Scripts/maui-bwv-cs.ps1: -------------------------------------------------------------------------------- 1 | # .NET MAUI ContentPage with BlazorWebView (C#) Template 2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | param( 5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the item being created.")] 6 | [Alias("n")] 7 | [string]$Name, 8 | 9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")] 10 | [Alias("f")] 11 | [switch]$Force 12 | ) 13 | 14 | $Env:WorkingDirectory = $pwd.Path 15 | 16 | if ($Force) 17 | { 18 | Invoke-Expression "dotnet new maui-bwv-cs -n $Name --force" 19 | } 20 | else 21 | { 22 | Invoke-Expression "dotnet new maui-bwv-cs -n $Name" 23 | } 24 | 25 | $Env:WorkingDirectory = '' 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-bwv.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage with BlazorWebView Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage with BlazorWebView in XAML 9 | echo. 10 | echo Requires a mandatory input: item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set item_name=%1 19 | if "%2"=="" (set options=_) else (set options=%2) 20 | 21 | if "%options%"=="_" (dotnet new maui-bwv -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-bwv -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 22 | 23 | set WorkingDirectory= 24 | set item_name= 25 | set options= 26 | 27 | :end 28 | -------------------------------------------------------------------------------- /src/Scripts/maui-bwv.ps1: -------------------------------------------------------------------------------- 1 | # .NET MAUI ContentPage with BlazorWebView (XAML) Template 2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | param( 5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the item being created.")] 6 | [Alias("n")] 7 | [string]$Name, 8 | 9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")] 10 | [Alias("f")] 11 | [switch]$Force 12 | ) 13 | 14 | $Env:WorkingDirectory = $pwd.Path 15 | 16 | if ($Force) 17 | { 18 | Invoke-Expression "dotnet new maui-bwv -n $Name --force" 19 | } 20 | else 21 | { 22 | Invoke-Expression "dotnet new maui-bwv -n $Name" 23 | } 24 | 25 | $Env:WorkingDirectory = '' 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-mvvm-cs.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage and ViewModel (C#) Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage and ViewModel (C#) 9 | echo. 10 | echo Requires a mandatory input: item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set item_name=%1 19 | if "%2"=="" (set options=_) else (set options=%2) 20 | 21 | if "%options%"=="_" (dotnet new maui-mvvm-cs -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-mvvm-cs -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 22 | 23 | set WorkingDirectory= 24 | set item_name= 25 | set options= 26 | 27 | :end 28 | -------------------------------------------------------------------------------- /src/Scripts/maui-mvvm.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage and ViewModel Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage and ViewModel in XAML 9 | echo. 10 | echo Requires a mandatory input: item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set item_name=%1 19 | if "%2"=="" (set options=_) else (set options=%2) 20 | 21 | if "%options%"=="_" (dotnet new maui-mvvm -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-mvvm -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 22 | 23 | set WorkingDirectory= 24 | set item_name= 25 | set options= 26 | 27 | :end 28 | -------------------------------------------------------------------------------- /src/Scripts/maui-page-cs.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage (C#) Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage (C#) 9 | echo. 10 | echo Requires a mandatory input: page name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set page_name=%1 19 | 20 | dotnet new maui-page-cs -n %page_name% %~2 %~3 %~4 %~5 21 | 22 | set WorkingDirectory= 23 | set page_name= 24 | 25 | :end 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-page-cs.ps1: -------------------------------------------------------------------------------- 1 | # .NET MAUI ContentPage (C#) Template 2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | param( 5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the page being created.")] 6 | [Alias("n")] 7 | [string]$Name, 8 | 9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")] 10 | [Alias("f")] 11 | [switch]$Force 12 | ) 13 | 14 | $Env:WorkingDirectory = $pwd.Path 15 | 16 | if ($Force) 17 | { 18 | Invoke-Expression "dotnet new maui-page-cs -n $Name --force" 19 | } 20 | else 21 | { 22 | Invoke-Expression "dotnet new maui-page-cs -n $Name" 23 | } 24 | 25 | $Env:WorkingDirectory = '' 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-page.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentPage Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentPage in XAML 9 | echo. 10 | echo Requires a mandatory input: page name 11 | echo Takes an optional input: xaml only 12 | 13 | goto end 14 | 15 | :process 16 | 17 | set WorkingDirectory=%cd% 18 | 19 | set page_name=%1 20 | if "%2"=="" (set options=_) else (set options=%2) 21 | 22 | if "%options%"=="_" (dotnet new maui-page -n %page_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-page -n %page_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 23 | 24 | set WorkingDirectory= 25 | set page_name= 26 | set options= 27 | 28 | :end 29 | -------------------------------------------------------------------------------- /src/Scripts/maui-resdict.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ResourceDictionary Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ResourceDictionary in XAML 9 | echo. 10 | echo Requires a mandatory input: item name 11 | echo Takes an optional input: xaml only 12 | 13 | goto end 14 | 15 | :process 16 | 17 | set WorkingDirectory=%cd% 18 | 19 | set item_name=%1 20 | if "%2"=="" (set options=_) else (set options=%2) 21 | 22 | if "%options%"=="_" (dotnet new maui-resdict -n %item_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-resdict -n %item_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 23 | 24 | set WorkingDirectory= 25 | set item_name= 26 | set options= 27 | 28 | :end 29 | -------------------------------------------------------------------------------- /src/Scripts/maui-shell-cs.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI Shell (C#) Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI Shell (C#) 9 | echo. 10 | echo Requires a mandatory input: shell item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set type_name=%1 19 | 20 | dotnet new maui-shell-cs -n %type_name% %~2 %~3 %~4 %~5 21 | 22 | set WorkingDirectory= 23 | set type_name= 24 | 25 | :end 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-shell-cs.ps1: -------------------------------------------------------------------------------- 1 | # .NET MAUI Shell (C#) Template 2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | param( 5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the shell item being created.")] 6 | [Alias("n")] 7 | [string]$Name, 8 | 9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")] 10 | [Alias("f")] 11 | [switch]$Force 12 | ) 13 | 14 | $Env:WorkingDirectory = $pwd.Path 15 | 16 | if ($Force) 17 | { 18 | Invoke-Expression "dotnet new maui-shell-cs -n $Name --force" 19 | } 20 | else 21 | { 22 | Invoke-Expression "dotnet new maui-shell-cs -n $Name" 23 | } 24 | 25 | $Env:WorkingDirectory = '' 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-shell.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI Shell Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI Shell in XAML 9 | echo. 10 | echo Requires a mandatory input: shell item name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set type_name=%1 19 | 20 | dotnet new maui-shell -n %type_name% %~2 %~3 %~4 %~5 21 | 22 | set WorkingDirectory= 23 | set type_name= 24 | 25 | :end 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-view-cs.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentView (C#) Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentView (C#) 9 | echo. 10 | echo Requires a mandatory input: page name 11 | 12 | goto end 13 | 14 | :process 15 | 16 | set WorkingDirectory=%cd% 17 | 18 | set view_name=%1 19 | 20 | dotnet new maui-view-cs -n %view_name% %~2 %~3 %~4 %~5 21 | 22 | set WorkingDirectory= 23 | set view_name= 24 | 25 | :end 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-view-cs.ps1: -------------------------------------------------------------------------------- 1 | # .NET MAUI ContentView (C#) Template 2 | # Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | param( 5 | [Parameter(Mandatory, Position=0, HelpMessage="The name for the view being created.")] 6 | [Alias("n")] 7 | [string]$Name, 8 | 9 | [Parameter(HelpMessage="Forces content to be generated even if it would change existing files..")] 10 | [Alias("f")] 11 | [switch]$Force 12 | ) 13 | 14 | $Env:WorkingDirectory = $pwd.Path 15 | 16 | if ($Force) 17 | { 18 | Invoke-Expression "dotnet new maui-view-cs -n $Name --force" 19 | } 20 | else 21 | { 22 | Invoke-Expression "dotnet new maui-view-cs -n $Name" 23 | } 24 | 25 | $Env:WorkingDirectory = '' 26 | -------------------------------------------------------------------------------- /src/Scripts/maui-view.bat: -------------------------------------------------------------------------------- 1 | :: .NET MAUI ContentView Template 2 | :: Copyright 2024 Vijay Anand E G https://egvijayanand.in/ 3 | 4 | @echo off 5 | 6 | if not "%1"=="" (if not "%1"=="-h" (goto process)) 7 | 8 | echo .NET MAUI ContentView in XAML 9 | echo. 10 | echo Requires a mandatory input: view name 11 | echo Takes an optional input: xaml only 12 | 13 | goto end 14 | 15 | :process 16 | 17 | set WorkingDirectory=%cd% 18 | 19 | set view_name=%1 20 | if "%2"=="" (set options=_) else (set options=%2) 21 | 22 | if "%options%"=="_" (dotnet new maui-view -n %view_name%) else (if "%options:~0,1%"=="-" (dotnet new maui-view -n %view_name% %options% %~3 %~4 %~5 %~6) else (echo Invalid input.)) 23 | 24 | set WorkingDirectory= 25 | set view_name= 26 | set options= 27 | 28 | :end 29 | --------------------------------------------------------------------------------