How doremichen/dotnet_exercise works
Project Type and Purpose
• This repository is a collection of homework/sample apps demonstrating:
• Cross-platform .NET MAUI applications (MyFirstApp, NoteApp, NoteApp_MVVM)
• MVVM architecture (NoteApp_MVVM, WpfApp_DataBinding)
• WPF data-binding and converters (WpfApp_DataBinding)
• No backend services or databases are included—these are purely UI/UX and client-side logic demos.
File Structure
• Top-level solutions:
• MyFirstApp/MyFirstApp.sln
• NoteApp/NoteApp.sln
• NoteApp_MVVM/Notes.sln
• WpfApp_DataBinding/WpfApp_DataBinding.sln
• Each MAUI project has:
• A shared “.csproj” with XAML views (AppShell, MainPage, etc.)
• A “Platforms” folder with OS-specific project stubs (Android, iOS, MacCatalyst, Tizen, Windows)
• Resources (Fonts, Images, Styles, Raw assets)
• NoteApp_MVVM adds:
• Models/, ViewModels/, Views/ directories implementing full MVVM
• WpfApp_DataBinding has:
• App.xaml + MainWindow.xaml
• ViewModels/ with converters and collection demos
• No server or external service integrations—focus is on client architecture.
README
• Minimal description: “dotnet_exercise – Home work,” confirming this is purely sample code.
How to Represent the Architecture
a. Main Components
1. Shared Core Project (for each MAUI app):
– App entry point (MauiProgram.cs)
– UI layer (XAML Views)
– Business logic layer (ViewModels or code-behind)
– Models (POCO data classes)
– Resource catalogs (Styles, Fonts, Images)
2. Platform Projects (Android, iOS, MacCatalyst, Tizen, Windows):
– OS bootstrap (MainActivity, AppDelegate, Program.cs)
– Manifests and entitlements
3. WPF App (WpfApp_DataBinding):
– View (MainWindow + Demo windows)
– ViewModels/Converters
– Models
b. Relationships & Interactions
– Shared Core exposes UI → binds to ViewModels → manipulates Models
– Core calls platform abstractions (DependencyService or native bridges) via interfaces in the shared project
– Platform bootstrappers load the shared App class and register services
– Resources (XAML + assets) flow into Views at runtime
c. Architectural Patterns & Principles
– MVVM: separation of View, ViewModel, Model
– Cross-platform abstraction: a single shared codebase with thin platform layers
– XAML resource dictionaries for theming & styling
d. Key Technologies & Frameworks
– .NET MAUI (MauiProgram, AppShell, XAML)
– C# code-behind for quick demos (MyFirstApp) vs. ViewModels (NoteApp_MVVM)
– WPF data binding & IValueConverter (BoolToTextConverter)