# mihlalimandoyi-hub/tipcalculator architecture

> Architecture diagram of the GitHub repository mihlalimandoyi-hub/tipcalculator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mihlalimandoyi-hub/tipcalculator
- Repository: https://github.com/mihlalimandoyi-hub/tipcalculator

## Overview

TipCalculator is a small .NET MAUI tip-splitting app. A user edits the bill, tip percentage, or party size; the page recalculates the tip, total, and per-person amount and displays them. The app is composed through MAUI startup and an app shell. The excerpts show calculation and startup code, but not the XAML wiring between controls and handlers or the shell’s page registration, so those links are omitted.

Main entry points: [`TipCalculator/MauiProgram.cs`](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/MauiProgram.cs) (MAUI composition), [`TipCalculator/App.xaml.cs`](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/App.xaml.cs) (App startup), [`TipCalculator/Platforms/Tizen/Main.cs`](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/Platforms/Tizen/Main.cs) (Tizen host), [`TipCalculator/AppShell.xaml.cs`](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/AppShell.xaml.cs) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Application startup"]
  node_tizen_host["Tizen host<br/>[Main.cs]"]
  node_maui["MAUI composition<br/>[MauiProgram.cs]"]
  node_app["App startup<br/>[App.xaml.cs]"]
  node_shell["App shell<br/>[AppShell.xaml.cs]"]
end

subgraph group_calculator["Tip calculator"]
  node_page["Calculator page<br/>[MainPage.xaml.cs]"]
end

node_user(("User"))

node_tizen_host -->|"creates app"| node_maui
node_maui -->|"configures app"| node_app
node_app -->|"sets main page"| node_shell
node_user -.->|"enters values"| node_page

click node_tizen_host "https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/Platforms/Tizen/Main.cs"
click node_maui "https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/MauiProgram.cs"
click node_app "https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/App.xaml.cs"
click node_shell "https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/AppShell.xaml.cs"
click node_page "https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/MainPage.xaml.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tizen_host,node_maui,node_app,node_shell,node_user toneBlue
class node_page toneAmber
```

## Components

### Application startup

- [Tizen host](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/Platforms/Tizen/Main.cs): `TipCalculator/Platforms/Tizen/Main.cs`
- [MAUI composition](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/MauiProgram.cs): `TipCalculator/MauiProgram.cs`
- [App startup](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/App.xaml.cs): `TipCalculator/App.xaml.cs`
- [App shell](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/AppShell.xaml.cs): `TipCalculator/AppShell.xaml.cs`

### Tip calculator

- [Calculator page](https://github.com/mihlalimandoyi-hub/tipcalculator/blob/main/TipCalculator/MainPage.xaml.cs): `TipCalculator/MainPage.xaml.cs`

### Other components

- **User**

## Connections

- Tizen host → MAUI composition: creates app (evidence: `TipCalculator/Platforms/Tizen/Main.cs`)
- MAUI composition → App startup: configures app (evidence: `TipCalculator/MauiProgram.cs`)
- App startup → App shell: sets main page (evidence: `TipCalculator/App.xaml.cs`)
- User → Calculator page: enters values
