C# WPF Todo App Example
Windows WPF host showing VMx commands with idiomatic XAML binding wrappers
C# WPF Todo App Example
Windows WPF host showing VMx commands with idiomatic XAML binding wrappers
C# WPF Todo App Example
Windows WPF host showing VMx commands with idiomatic XAML binding wrappers
Host and adapter boundary
VMx-owned application state
Verification and modeling rule
WPF window
MainWindow.xaml
ListBox + buttons
Windows-only launch
INPC wrappers
TodoItemVM forwards VMx
ICommand bridge
XAML data binding
User gestures
events become VM calls
no domain state in host
render from VM snapshots
Run surface
local example command
smoke-friendly path
documented README entry
MainWindowViewModel
ObservableCollection rows
NewItemTitle input
AddCommand
TodoItemVM rows
ComponentVM<TodoItem>
Title / Done projection
ToggleDoneCommand
RelayCommand
add item
toggle item
CanExecute binding
TodoItem
title
done flag
simple value model
Build + launch
dotnet build
dotnet run on Windows
cross-platform restore
Best-fit use
Use this for wrapper-style integration where the UI toolkit expects INPC and ICommand surfaces.
Reading rule
Follow arrows top to bottom: host input becomes VMx commands; VMx state publishes renderable projections back to the host.
binds
routes
runs
owns
projects
executes
loads
children
commands
data
tests
boundary
Wrapper pattern
VMx stays inside row wrappers.
WPF sees familiar binding contracts.
Command ownership
Add and toggle behavior route through RelayCommand.
The view only binds commands.
Platform note
Build can succeed off Windows.
Running WPF still requires Windows.