susaglam / dotnet-maui-samples

.NET MAUI Samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET MAUI Samples

Completed samples will be uploaded into this repository so that it is accessible to everyone.

Join me on Developer Thoughts, an exclusive blog for .NET MAUI and Blazor, for articles on working with these samples.

Available under the src directory:

  • TestApp - .NET MAUI Shell sample

  • MenuApp - .NET MAUI sample app with multi-level menu definition in both XAML and C# (Will work only on Desktop form factor)

  • DateCalculator

    • MVVM Sample
    • Xamarin Forms and .NET MAUI in a single solution
    • WPF project to illustrate the reuse of ViewModels across UI frameworks
    • Shared business logic as a separate library project
    • ViewModels implemented with CommunityToolkit.Mvvm NuGet package
  • MauiBlazorApp - .NET MAUI Blazor sample

    • App Theming
    • Components from shared Razor Class Library (RCL)
  • MauiAppCS - .NET MAUI C# Markup based Sample

  • UnifiedDateCalculator

    • Shared class library sample
    • UI, ViewModel, Model, and Business logic all from shared project
    • Head projects serve as an app container
    • Both Xamarin.Forms and .NET MAUI from a single project - DateCalculator.UI
  • EmbeddedAndroid - .NET MAUI Page embedded in a Native Android App, targeting .NET 6 (net6.0-android)

  • 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

  • MauiHotReload - Sample project to demonstrate C# Hot Reload feature supported via MetadataUpdateHandler (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.

  • C# Samples - C# version of the .NET MAUI UI Challenge - Awesome UIs without any XAML usage - Stay tuned for more samples ...

About

.NET MAUI Samples

License:MIT License


Languages

Language:C# 98.8%Language:HTML 0.7%Language:CSS 0.5%