Skip to content

Demos with minimal XAML; math tools in MVVM with AXAML views [no-new-version] - #64

Merged
simonebortolin merged 1 commit into
mainfrom
demos-xaml-mathtools-mvvm
Nov 15, 2026
Merged

simonebortolin merged 1 commit into
mainfrom
demos-xaml-mathtools-mvvm

Conversation

@simonebortolin

Copy link
Copy Markdown
Owner

Summary

  • Demos in XAML. The demos of WPF, Uno (desktop and WinUI 3) and Avalonia start from an App.xaml and a window or page in XAML, instead of a static Main that builds everything in code. The WPF and Uno ones are the same minimal page: a MathEditBox, its UnicodeMath and LaTeX, and a MathView bound to the editor. The Avalonia one keeps DemoView (shared with the web demo), hosted by a MainWindow.axaml.
  • Math tools in MVVM. A view model for each page (ViewModels/, over a small ObservableObject and RelayCommand, no package) and the views in AXAML with compiled bindings (Views/). The browser project links the same files. The tests of the views drive the view models.
  • Uno tests in the light theme. The white page of the tests asks for the light theme: with Windows in the dark theme the ink was white on it, and EditBoxTests.DrawsInk counted no dark pixel.

No change in src/, so no new version.

Test plan

  • dotnet build SharpEquations.slnx: 0 errors, 0 warnings
  • dotnet test --solution SharpEquations.slnx on Windows: all pass but DrawsInk, fixed afterwards
  • Uno tests run again after the fix: 14 of 14
  • The WPF, Uno (desktop, WinUI 3) and Avalonia demos and the math tools opened by hand
  • The browser math tools build in Debug (not published, not run in a browser)

🤖 Generated with Claude Code

…version]

The demos of WPF, Uno and Avalonia start from an App.xaml and a window (or
page) in XAML instead of a static Main that builds everything in code: the
WPF and Uno ones are the same minimal page, an editor, its UnicodeMath and
LaTeX, and a MathView bound to it.

The math tools are in MVVM: a view model for each page over a small
ObservableObject and RelayCommand (no package), the views in AXAML with
compiled bindings. The tests of the views drive the view models.

The tests of Uno show their white page in the light theme: in the dark theme
of the system the ink was white on it, and DrawsInk found none.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Pre-release removed now that this PR is closed.

@simonebortolin
simonebortolin merged commit e2bb4b9 into main Nov 15, 2026
28 checks passed
@simonebortolin
simonebortolin deleted the demos-xaml-mathtools-mvvm branch November 15, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant