How spinepith/windowsstickies works
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: WindowService.cs Window service · App.xaml.cs Application startup · MainWindow.xaml.cs Note window · MainViewModel.cs Note view model
Components 17
Startup and windows
- Application startup
App.xaml.cs - Window service
Services/WindowService.cs - Note window
Views/MainWindow.xaml.cs - About window
Views/AboutWindow.xaml.cs
Notes and editing
- Rich-text editor
Views/MainView.xaml.cs - Note view model
ViewModels/MainViewModel.cs - Sticky note model
Models/StickyModel.cs - Title-bar commands
ViewModels/TitleBarViewModel.cs - Window messages
Models/Messages.cs
Editing tools
- Find tool
ViewModels/FindTextViewModel.cs - Font picker
ViewModels/FontPickerViewModel.cs - Color picker
ViewModels/ColorPickerViewModel.cs - Hyperlink tool
ViewModels/HyperlinkViewModel.cs
Persistence and settings
- Session persistence
Services/SessionService.cs - User settings
Services/SettingsService.cs - Localization
Locales/Localizer.cs
Other components
- User
Connections 21
- User → Application startup: launches
- Application startup → User settings: reads settings
App.xaml.cs - Application startup → Localization: sets language
App.xaml.cs - Application startup → Window service: initializes
App.xaml.cs - Window service → Session persistence: opens saved notes
Services/WindowService.cs - Window service → Note window: creates
Services/WindowService.cs - Window service → Note view model: assigns context
Services/WindowService.cs - Note window → Note view model: reads model
Views/MainWindow.xaml.cs - Note window → Session persistence: saves changes
Views/MainWindow.xaml.cs - Note window → User settings: applies corners
Views/MainWindow.xaml.cs - Rich-text editor → Note view model: binds editor
Views/MainView.xaml.cs - Note view model → Sticky note model: holds note
ViewModels/MainViewModel.cs - Title-bar commands → Sticky note model: updates note
ViewModels/TitleBarViewModel.cs - Title-bar commands → Window messages: sends commands
ViewModels/TitleBarViewModel.cs - Window service → Window messages: handles requests
Services/WindowService.cs - Window service → Find tool: creates tool
Services/WindowService.cs - Window service → Font picker: creates tool
Services/WindowService.cs - Window service → Color picker: creates tool
Services/WindowService.cs - Window service → Hyperlink tool: creates tool
Services/WindowService.cs - Window service → About window: opens window
Services/WindowService.cs - Session persistence → Sticky note model: persists notes
Services/SessionService.cs