{"id":15059890,"url":"https://github.com/egvijayanand/dotnet-maui-samples","last_synced_at":"2025-04-04T15:08:52.314Z","repository":{"id":38299648,"uuid":"354724717","full_name":"egvijayanand/dotnet-maui-samples","owner":"egvijayanand","description":".NET MAUI Samples","archived":false,"fork":false,"pushed_at":"2024-12-06T04:39:00.000Z","size":12678,"stargazers_count":199,"open_issues_count":0,"forks_count":27,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T14:07:27.989Z","etag":null,"topics":["android","blazor","blazor-hybrid","blazorwebview","csharp","dotnet-maui","dotnetmaui","fsharp","hybrid","hybrid-app","ios","mac-catalyst","macos","maui","maui-blazor","samples","windows","winui","winui3","xaml"],"latest_commit_sha":null,"homepage":"https://egvijayanand.in/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egvijayanand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["egvijayanand"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://paypal.me/egvijayanand","https://www.buymeacoffee.com/egvijayanand"]}},"created_at":"2021-04-05T05:05:41.000Z","updated_at":"2025-02-14T12:24:08.000Z","dependencies_parsed_at":"2024-07-24T01:33:44.794Z","dependency_job_id":"00f0318c-4d34-4da2-8750-9b44cb2ebc01","html_url":"https://github.com/egvijayanand/dotnet-maui-samples","commit_stats":{"total_commits":120,"total_committers":1,"mean_commits":120.0,"dds":0.0,"last_synced_commit":"04cca83a923994e3f5481164fb56c7f58c7bccd3"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egvijayanand%2Fdotnet-maui-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egvijayanand%2Fdotnet-maui-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egvijayanand%2Fdotnet-maui-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egvijayanand%2Fdotnet-maui-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egvijayanand","download_url":"https://codeload.github.com/egvijayanand/dotnet-maui-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198460,"owners_count":20900080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","blazor","blazor-hybrid","blazorwebview","csharp","dotnet-maui","dotnetmaui","fsharp","hybrid","hybrid-app","ios","mac-catalyst","macos","maui","maui-blazor","samples","windows","winui","winui3","xaml"],"created_at":"2024-09-24T22:49:28.637Z","updated_at":"2025-04-04T15:08:52.304Z","avatar_url":"https://github.com/egvijayanand.png","language":"C#","funding_links":["https://github.com/sponsors/egvijayanand","https://paypal.me/egvijayanand","https://www.buymeacoffee.com/egvijayanand"],"categories":[],"sub_categories":[],"readme":"## .NET MAUI Samples\n\nCompleted samples will be uploaded into this repository so that it is accessible to everyone.\n\nJoin me on [**Developer Thoughts**](https://egvijayanand.in/), an exclusive blog for .NET MAUI and Blazor, for articles on working with these samples.\n\n_Note: Samples are in the process of migrating to the latest framework version, so there would be a change in the directory structure. Kindly bear with this._\n\n### .NET MAUI 9 Samples\n\nMade available in the `src\\NET_9\\` directory:\n\n|Solution Title|Description|\n|:---:|:---|\n|`EmbeddedAndroid`|.NET MAUI Page embedded in a .NET 9 for Android App \u003cbr /\u003e Refer to this [.NET MAUI - Native Embedding](https://egvijayanand.in/2024/02/29/dotnet-maui-native-embedding/) article for working with this sample|\n|`EmbeddediOS`|.NET MAUI Page embedded in a .NET 9 for iOS App \u003cbr /\u003e Refer to this [.NET MAUI - Native Embedding](https://egvijayanand.in/2024/02/29/dotnet-maui-native-embedding/) article for working with this sample|\n|`EmbeddedWindows`|.NET MAUI Page embedded in a Native WinUI 3 App \u003cbr /\u003e Refer to this [.NET MAUI - Native Embedding](https://egvijayanand.in/2024/02/29/dotnet-maui-native-embedding/) article for working with this sample|\n|`MapsApp`|Using .NET MAUI [CommunityToolkit.Maui.Maps](https://www.nuget.org/packages/CommunityToolkit.Maui.Maps) embedded in a Native WinUI 3 App \u003cbr /\u003e Refer to this [.NET MAUI Community Toolkit Maps in WinUI 3 App](https://egvijayanand.in/2024/03/07/dotnet-maui-community-toolkit-maps-in-winui-3-app/) article for working with this sample|\n|`HybridWebViewApp`|A sample app showcasing the features of the new [HybridWebView](https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-9?view=net-maui-9.0#hybridwebview) control. \u003cbr /\u003e Refer to this [Exploring .NET MAUI 9: HybridWebView](https://egvijayanand.in/2024/10/04/exploring-dotnet-maui-9-hybridwebview-features/) article for working with this sample|\n|`WinUIBlazor`|.NET MAUI `BlazorWebView` embedded in a Native WinUI 3 App, making it as a Blazor Hybrid app \u003cbr /\u003e Refer to this [.NET MAUI - Blazor Hybrid - WinUI 3](https://egvijayanand.in/2023/03/29/dotnet-maui-blazor-hybrid-winui-3/) article for working with this sample|\n|`TitleBarApp`|A sample app showcasing the features of the new [TitleBar](https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-9?view=net-maui-9.0#titlebar-for-windows) control. \u003cbr /\u003e Refer to this [What's New in .NET MAUI 9: Window TitleBar](https://egvijayanand.in/2024/12/04/what-is-new-in-dotnet-maui-9-window-titlebar/) article for working with this sample|\n|`RatingApp`|A sample app showcasing the features of the new [RatingView](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/ratingview) control. \u003cbr /\u003e Refer to this [Exploring the New RatingView Control in .NET MAUI Community Toolkit v11.2](https://egvijayanand.in/2025/03/28/exploring-the-new-ratingview-control-in-dotnet-maui-community-toolkit-v11/?utm_campaign=branding\u0026utm_source=github\u0026utm_medium=samples) article for working with this sample|\n\n### .NET MAUI 8 Samples\n\nMade available in the `src\\NET_8\\` directory:\n\n|Solution Title|Description|\n|:---:|:---|\n|`EmbeddedWindows`|.NET MAUI Page embedded in a Native WinUI 3 App \u003cbr /\u003e Refer to this [.NET MAUI - Native Embedding](https://egvijayanand.in/2024/02/29/dotnet-maui-native-embedding/) article for working with this sample|\n|`MapsApp`|.NET MAUI Maps embedded in a Native WinUI 3 App \u003cbr /\u003e Refer to this [.NET MAUI Community Toolkit Maps in WinUI 3 App](https://egvijayanand.in/2024/03/07/dotnet-maui-community-toolkit-maps-in-winui-3-app/) article for working with this sample|\n|`ThemedApp`|Sample app for .NET MAUI App Theming \u003cbr /\u003e Refer to this [.NET MAUI - App Theming](https://egvijayanand.in/2024/07/03/dotnet-maui-developer-tips-app-theming/) article for further details|\n|`DateCalculator`|\u003cul\u003e\u003cli\u003eMVVM Sample\u003c/li\u003e\u003cli\u003eXamarin Forms and .NET MAUI in a single solution\u003c/li\u003e\u003cli\u003eWPF and WinUI projects to illustrate the reuse of ViewModels across UI frameworks\u003c/li\u003e\u003cli\u003eWinForms project to illustrate the reuse of ViewModels across non-XAML UI framework too\u003c/li\u003e\u003cli\u003eShared business logic as a separate library project\u003c/li\u003e\u003cli\u003eViewModels implemented with [CommunityToolkit.Mvvm](https://www.nuget.org/packages/CommunityToolkit.Mvvm) (aka Microsoft MVVM Toolkit) NuGet package\u003c/li\u003e\u003cli\u003eConsult the [MVVM - Made Easy](https://egvijayanand.in/category/mvvm/made-easy/) series of articles for guidance on working with this sample solution.\u003c/li\u003e\u003c/ul\u003e|\n|`UnifiedDateCalculator`|\u003cul\u003e\u003cli\u003eShared class library sample\u003c/li\u003e\u003cli\u003eUI, ViewModel, Model, and Business logic all from shared project\u003c/li\u003e\u003cli\u003eHead projects serve as an app container\u003c/li\u003e\u003cli\u003eBoth Xamarin.Forms and .NET MAUI UI definition from a single project - `DateCalculator.UI`\u003c/li\u003e\u003cli\u003eViewModels implemented with [CommunityToolkit.Mvvm](https://www.nuget.org/packages/CommunityToolkit.Mvvm) (aka Microsoft MVVM Toolkit) NuGet package\u003c/li\u003e\u003c/ul\u003e|\n\nMade available in the the `src\\` directory:\n\n* `TestApp` - .NET MAUI Shell sample\n* `MenuApp` - .NET MAUI sample app with multi-level menu definition in both XAML and C# _(Will work only on Desktop form factor)_\n* `MauiBlazorApp` - .NET MAUI Blazor sample\n  - App Theming\n  - State sharing between .NET MAUI and Razor Components\n  - Components from shared Razor Class Library (RCL)\n* `MauiAppCS` - .NET MAUI C# Markup based Sample\n* `EmbeddedAndroid` - .NET MAUI Page embedded in a Native Android App, targeting .NET 6 (`net6.0-android`)\n* `MediaElement` - Sample project in both .NET 6 and 7. Now made available in Preview bits as part of the .NET MAUI CommunityToolkit - And it'll be a separate NuGet package titled `CommunityToolkit.Maui.MediaElement`\n* `MauiHotReload` - Sample project to demonstrate **C# Hot Reload** feature supported via [MetadataUpdateHandler](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.metadata.metadataupdatehandlerattribute?view=net-6.0) (refer to HotReloadService.cs). Core logic is abstracted into a base page named `MauiPage`, inherit the content pages from it and implement the UI logic in the override of the abstract `Build()` method. Source is available in the `src\\MauiHotReload` folder.\n* `WindowsUnpackagedApp` - Sample project to demonstrate running Windows targeted WinUI 3 project as Unpackaged app type.\n* `PopupDialogs` - Sample project to demonstrate the custom dialogs implemented with [VijayAnand.MauiToolkit.Pro](https://www.nuget.org/packages/VijayAnand.MauiToolkit.Pro) NuGet package.\n* `HybridRclApp` - `BlazorWebView` hybrid sample\n  - A hybrid solution demonstrating the capabilities of `BlazorWebView` control\n  - Loaded with `.NET MAUI`, `Windows Forms`, `WPF`, and `WinUI 3` projects in a single solution\n  - Razor components abstracted in a shared Razor Class Library (RCL)\n  - While working with the **WinUI 3** **Unpackaged** model, the below project property needs to be uncommented in the project file otherwise it'll result in the mentioned error message. _And for the **Packaged** model, this can stay as commented or update its value as MSIX (the default value)_:\n\n```xml\n\u003cWindowsPackageType\u003eNone\u003c/WindowsPackageType\u003e\n```\n\n**Error message:**\nUnable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)\n\n### .NET MAUI UI Challenge - C# Version\n\n* C# Samples - C# version of the [.NET MAUI UI Challenge](https://aka.ms/maui/UIChallenge) - [Awesome UIs](https://github.com/jsuarezruiz/dotnet-maui-showcase) without any XAML usage - Stay tuned for more samples ...\n  - Made available under the [C#-Samples](/src/C%23-Samples/) folder\n  - Design credit to their respective owners\n  - [BeautyShop App](https://github.com/jsuarezruiz/netmaui-beautyshop-app-challenge) \n  - [Chat App](https://github.com/jsuarezruiz/netmaui-chat-app-challenge)\n  - [Pet Adoption UI](https://github.com/LeomarisReyes/PetAdoptionUI)\n  - [MAUI Finance](https://github.com/cemahseri/MauiFinance)\n  - [BMI Calculator](https://github.com/naweed/MauiBMICalculator)\n  - [Class Fly](https://github.com/kphillpotts/MAUI-UI-July) - Designed as part of MAUI UI July\n  - [F1 TV](https://github.com/andreas-nesheim/MAUIUIJuly) - Designed as part of MAUI UI July\n  - [Coffeeffee MAUI](https://github.com/zdanovs/Coffeeffee-MAUI)\n  - [MAUI Focus](https://github.com/pedroldk/maui-focus)\n  - [Scientific Calculator](https://github.com/naweed/MauiScientificCalculator)\n  - [Medicine Tracker](https://github.com/thaveeshakannangara/MAUIBeautifulUIChallenge)\n  - [eCommerce MAUI](https://github.com/exendahal/EcommerceMAUI)\n  - [MAUI Payments with Prism](https://github.com/DamianSuess/Learn.MauiPaymentUi)\n  - [Bottom Sheets](https://github.com/PremSaiVarada/DemoCustomSheets)\n  - [MyTasks](https://github.com/jsuarezruiz/netmaui-mytasks-app-challenge)\n  - [MonkeyFinder](https://github.com/dotnet-presentations/dotnet-maui-workshop) - Designed as part of .NET MAUI - Workshop by James Montemagno\n  - [News App](https://github.com/henduck/MAUINewsApp)\n    * There's some issue in making use of FlexLayout as a BindableLayout in C# Markup hence replaced it with StackLayout and Grid on two of the pages\n  - [MAUI Pets](https://github.com/BryanOroxon/MAUIPETS)\n  - [SpaceX History](https://github.com/EduardoReisDev/SpaceXhistory)\n\n### .NET MAUI - F# Samples\n\n* F# Samples\n  - Made available under the [F#-Samples](/src/F%23-Samples/) folder developed with Fabulous\n  - FSApp - A F# sample app (with DI option)\n  - HybridApp - A F# Blazor Hybrid sample app\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegvijayanand%2Fdotnet-maui-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegvijayanand%2Fdotnet-maui-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegvijayanand%2Fdotnet-maui-samples/lists"}