# spinepith/windowsstickies architecture

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

- Interactive diagram: https://gitdiagram.com/spinepith/windowsstickies
- Repository: https://github.com/spinepith/windowsstickies

## Overview

Windows Stickies is a WPF desktop sticky-note app. At startup it loads language and window services; the service opens note windows backed by observable note models and a persisted session. Users edit rich text and note appearance in each window, with title-bar commands opening search, font, color, hyperlink, and About dialogs. Session and settings are stored as JSON under local application data. The README identifies the product but documents no feature details; links among unsampled dialog components are therefore limited to relationships explicit in the sampled service registrations and source index.

Main entry points: [`Services/WindowService.cs`](https://github.com/spinepith/windowsstickies/blob/main/Services/WindowService.cs) (Window service), [`App.xaml.cs`](https://github.com/spinepith/windowsstickies/blob/main/App.xaml.cs) (Application startup), [`Views/MainWindow.xaml.cs`](https://github.com/spinepith/windowsstickies/blob/main/Views/MainWindow.xaml.cs) (Note window), [`ViewModels/MainViewModel.cs`](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/MainViewModel.cs) (Note view model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and windows"]
  node_app["Application startup<br/>[App.xaml.cs]"]
  node_window_service["Window service<br/>[WindowService.cs]"]
  node_note_window["Note window<br/>[MainWindow.xaml.cs]"]
  node_about["About window"]
end

subgraph group_notes["Notes and editing"]
  node_note_view["Rich-text editor<br/>[MainView.xaml.cs]"]
  node_note_vm["Note view model<br/>[MainViewModel.cs]"]
  node_sticky["Sticky note model<br/>[StickyModel.cs]"]
  node_title_vm["Title-bar commands"]
  node_messages["Window messages<br/>[Messages.cs]"]
end

subgraph group_tools["Editing tools"]
  node_find["Find tool"]
  node_font["Font picker"]
  node_color["Color picker"]
  node_hyperlink["Hyperlink tool"]
end

subgraph group_state["Persistence and settings"]
  node_session[("Session persistence<br/>[SessionService.cs]")]
  node_settings[("User settings<br/>[SettingsService.cs]")]
  node_localizer["Localization<br/>[Localizer.cs]"]
end

node_user(("User"))

node_user -->|"launches"| node_app
node_app -->|"reads settings"| node_settings
node_app -->|"sets language"| node_localizer
node_app -->|"initializes"| node_window_service
node_window_service -->|"opens saved notes"| node_session
node_window_service -->|"creates"| node_note_window
node_window_service -->|"assigns context"| node_note_vm
node_note_window -->|"reads model"| node_note_vm
node_note_window -->|"saves changes"| node_session
node_note_window -->|"applies corners"| node_settings
node_note_view -->|"binds editor"| node_note_vm
node_note_vm -->|"holds note"| node_sticky
node_title_vm -->|"updates note"| node_sticky
node_title_vm -->|"sends commands"| node_messages
node_window_service -->|"handles requests"| node_messages
node_window_service -->|"creates tool"| node_find
node_window_service -->|"creates tool"| node_font
node_window_service -->|"creates tool"| node_color
node_window_service -->|"creates tool"| node_hyperlink
node_window_service -->|"opens window"| node_about
node_session -->|"persists notes"| node_sticky

click node_app "https://github.com/spinepith/windowsstickies/blob/main/App.xaml.cs"
click node_window_service "https://github.com/spinepith/windowsstickies/blob/main/Services/WindowService.cs"
click node_note_window "https://github.com/spinepith/windowsstickies/blob/main/Views/MainWindow.xaml.cs"
click node_note_view "https://github.com/spinepith/windowsstickies/blob/main/Views/MainView.xaml.cs"
click node_note_vm "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/MainViewModel.cs"
click node_sticky "https://github.com/spinepith/windowsstickies/blob/main/Models/StickyModel.cs"
click node_title_vm "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/TitleBarViewModel.cs"
click node_messages "https://github.com/spinepith/windowsstickies/blob/main/Models/Messages.cs"
click node_find "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/FindTextViewModel.cs"
click node_font "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/FontPickerViewModel.cs"
click node_color "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/ColorPickerViewModel.cs"
click node_hyperlink "https://github.com/spinepith/windowsstickies/blob/main/ViewModels/HyperlinkViewModel.cs"
click node_session "https://github.com/spinepith/windowsstickies/blob/main/Services/SessionService.cs"
click node_settings "https://github.com/spinepith/windowsstickies/blob/main/Services/SettingsService.cs"
click node_localizer "https://github.com/spinepith/windowsstickies/blob/main/Locales/Localizer.cs"
click node_about "https://github.com/spinepith/windowsstickies/blob/main/Views/AboutWindow.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_app,node_window_service,node_note_window,node_about,node_user toneBlue
class node_note_view,node_note_vm,node_sticky,node_title_vm,node_messages toneAmber
class node_find,node_font,node_color,node_hyperlink toneMint
class node_session,node_settings,node_localizer toneRose
```

## Components

### Startup and windows

- [Application startup](https://github.com/spinepith/windowsstickies/blob/main/App.xaml.cs): `App.xaml.cs`
- [Window service](https://github.com/spinepith/windowsstickies/blob/main/Services/WindowService.cs): `Services/WindowService.cs`
- [Note window](https://github.com/spinepith/windowsstickies/blob/main/Views/MainWindow.xaml.cs): `Views/MainWindow.xaml.cs`
- [About window](https://github.com/spinepith/windowsstickies/blob/main/Views/AboutWindow.xaml.cs): `Views/AboutWindow.xaml.cs`

### Notes and editing

- [Rich-text editor](https://github.com/spinepith/windowsstickies/blob/main/Views/MainView.xaml.cs): `Views/MainView.xaml.cs`
- [Note view model](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/MainViewModel.cs): `ViewModels/MainViewModel.cs`
- [Sticky note model](https://github.com/spinepith/windowsstickies/blob/main/Models/StickyModel.cs): `Models/StickyModel.cs`
- [Title-bar commands](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/TitleBarViewModel.cs): `ViewModels/TitleBarViewModel.cs`
- [Window messages](https://github.com/spinepith/windowsstickies/blob/main/Models/Messages.cs): `Models/Messages.cs`

### Editing tools

- [Find tool](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/FindTextViewModel.cs): `ViewModels/FindTextViewModel.cs`
- [Font picker](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/FontPickerViewModel.cs): `ViewModels/FontPickerViewModel.cs`
- [Color picker](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/ColorPickerViewModel.cs): `ViewModels/ColorPickerViewModel.cs`
- [Hyperlink tool](https://github.com/spinepith/windowsstickies/blob/main/ViewModels/HyperlinkViewModel.cs): `ViewModels/HyperlinkViewModel.cs`

### Persistence and settings

- [Session persistence](https://github.com/spinepith/windowsstickies/blob/main/Services/SessionService.cs): `Services/SessionService.cs`
- [User settings](https://github.com/spinepith/windowsstickies/blob/main/Services/SettingsService.cs): `Services/SettingsService.cs`
- [Localization](https://github.com/spinepith/windowsstickies/blob/main/Locales/Localizer.cs): `Locales/Localizer.cs`

### Other components

- **User**

## Connections

- User → Application startup: launches
- Application startup → User settings: reads settings (evidence: `App.xaml.cs`)
- Application startup → Localization: sets language (evidence: `App.xaml.cs`)
- Application startup → Window service: initializes (evidence: `App.xaml.cs`)
- Window service → Session persistence: opens saved notes (evidence: `Services/WindowService.cs`)
- Window service → Note window: creates (evidence: `Services/WindowService.cs`)
- Window service → Note view model: assigns context (evidence: `Services/WindowService.cs`)
- Note window → Note view model: reads model (evidence: `Views/MainWindow.xaml.cs`)
- Note window → Session persistence: saves changes (evidence: `Views/MainWindow.xaml.cs`)
- Note window → User settings: applies corners (evidence: `Views/MainWindow.xaml.cs`)
- Rich-text editor → Note view model: binds editor (evidence: `Views/MainView.xaml.cs`)
- Note view model → Sticky note model: holds note (evidence: `ViewModels/MainViewModel.cs`)
- Title-bar commands → Sticky note model: updates note (evidence: `ViewModels/TitleBarViewModel.cs`)
- Title-bar commands → Window messages: sends commands (evidence: `ViewModels/TitleBarViewModel.cs`)
- Window service → Window messages: handles requests (evidence: `Services/WindowService.cs`)
- Window service → Find tool: creates tool (evidence: `Services/WindowService.cs`)
- Window service → Font picker: creates tool (evidence: `Services/WindowService.cs`)
- Window service → Color picker: creates tool (evidence: `Services/WindowService.cs`)
- Window service → Hyperlink tool: creates tool (evidence: `Services/WindowService.cs`)
- Window service → About window: opens window (evidence: `Services/WindowService.cs`)
- Session persistence → Sticky note model: persists notes (evidence: `Services/SessionService.cs`)
