Repository navigation
Demos with minimal XAML; math tools in MVVM with AXAML views [no-new-version] - #64
Merged
Merged
Conversation
…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]>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
App.xamland a window or page in XAML, instead of a staticMainthat builds everything in code. The WPF and Uno ones are the same minimal page: aMathEditBox, its UnicodeMath and LaTeX, and aMathViewbound to the editor. The Avalonia one keepsDemoView(shared with the web demo), hosted by aMainWindow.axaml.ViewModels/, over a smallObservableObjectandRelayCommand, 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.EditBoxTests.DrawsInkcounted no dark pixel.No change in
src/, so no new version.Test plan
dotnet build SharpEquations.slnx: 0 errors, 0 warningsdotnet test --solution SharpEquations.slnxon Windows: all pass butDrawsInk, fixed afterwards🤖 Generated with Claude Code