Skip to content

Update Avalonia to 12.2.0 - #71

Merged
simonebortolin merged 4 commits into
mainfrom
avalonia-12.2
Nov 23, 2026
Merged

simonebortolin merged 4 commits into
mainfrom
avalonia-12.2

Conversation

@simonebortolin

@simonebortolin simonebortolin commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Update Avalonia from 12.1.4 to 12.2.0 (release notes); the release lists no breaking changes.
  • Declare the properties of MathView and MathEditBox with the Avalonia 12.2 property generator ([GeneratedStyledProperty] partial properties). The generated XProperty fields and CLR properties keep the same names and signatures; the PublicAPI analyzer confirms the public API is unchanged. The 5 properties whose default is not a compile-time constant (Background, Padding, SelectionBrush, PlaceholderBrush, ToggleViewModeGesture) stay hand-written: the generator takes only constant defaults, and OverrideDefaultValue on the registering type throws "Metadata is already set".
  • Demos: fix the broken rounded border around the editor. The MathEditBox painted its square background inside the clipped, rounded Border, covering the border at the corners; the background now belongs to the frame (Demo and MathTools).
  • Bump VersionPrefix to 1.2.0.

Testing

  • Solution build: 0 warnings, 0 errors.
  • SharpEquations.Avalonia.Tests (net10.0): 207/207 passed (net8.0 not run locally: runtime not installed).
  • SharpEquations.MathTools.Tests: 599 passed, 179 skipped, 0 failed.
  • Demo run under xvfb: the corners of the editor frame are drawn.
  • WebAssembly demos not built locally.

https://claude.ai/code/session_01SyVio82xpSPNuyKJKTaSBs


Generated by Claude Code

The MathEditBox painted a square background inside the clipped Border, covering the rounded border at the corners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio82xpSPNuyKJKTaSBs
…ia 12.2

[GeneratedStyledProperty] partial properties instead of the hand-written fields and accessors. The public API is unchanged.
Properties whose default is not a compile-time constant stay hand-written: the generator takes only constant defaults,
and OverrideDefaultValue on the registering type throws.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SyVio82xpSPNuyKJKTaSBs
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Pre-release removed now that this PR is closed.

@simonebortolin
simonebortolin merged commit c7f39c8 into main Nov 23, 2026
36 of 37 checks passed
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.

2 participants