.NET MAUI Examples (C# / Mobile)
Overview
The examples in this section show how to use FlexCel with .NET MAUI. Each demo is a single cross-platform project that targets Android, iOS, macOS Catalyst, and Windows from a shared XAML-based UI.
Demos
| Demo | Description |
|---|---|
| FlexCalc | Interactive spreadsheet calculator using FlexCel's formula engine with MAUI data binding and an ObservableCollection |
| LangWars | Report generator that fetches Stack Overflow data and exports an Excel report to HTML, displayed in a MAUI WebView |
Platform-Specific Notes
- File storage: Uses
Environment.SpecialFolder.Personalfor persisting data, which maps to the appropriate app-private directory on each platform. - Asset access: Bundled files (templates, offline data) are loaded via
FileSystem.OpenAppPackageFileAsync(), MAUI's cross-platform abstraction for embedded resources. - File sharing: Uses
Share.Default.RequestAsync(), which invokes the native share dialog on each platform without requiring platform-specific code. - Build options: XAML source generation is enabled (
MauiXamlInflator="SourceGen") for faster builds and AOT compatibility.