This repository collects several focused Blazor samples that explore different hosting models, UI stacks, and data access patterns. Each sample is organized as its own solution or project group so you can inspect a single scenario in isolation or compare approaches side by side.
Demonstrates how to switch a Blazor app between server and WebAssembly hosting at runtime by using either the blazor-mode query string parameter or the ASPNETCORE_BLAZOR_MODE environment variable.
Key ideas:
- Runtime selection between server and WebAssembly boot scripts
- Shared components rendered through different hosting modes
- Query-string and environment-driven configuration
Entry point: BlazorDualMode.sln
Shows how to host an Azure Maps-based Blazor application that consumes a custom vector tile endpoint backed by OpenStreetMap-derived data stored in Assets\tiles.db.
Key ideas:
- Azure Maps integration from a Blazor app
- Custom vector tile delivery from ASP.NET Core controllers
- Shared UI across server and WebAssembly hosting modes
Docs: BlazorMapTiles\README.md
Entry point: BlazorMapTiles.sln
Contains two samples that showcase Microsoft.FluentUI.AspNetCore.Components with different data sources.
FluentUI.AdventureWorksuses a SQL Server-backed Entity Framework Core model and the Fluent UI DataGrid Entity Framework adapter.FluentUI.TripPinuses the public TripPin OData service and the Fluent UI DataGrid OData adapter.
Docs: FluentUI\README.md
Entry point: FluentUI.Samples.sln
- Install the .NET SDK required by the sample you want to run.
- Open the corresponding solution file in Visual Studio, or run the sample with
dotnet run. - Follow the sample-specific configuration steps in the linked project README before launching apps that require external services or credentials.