General
Read our release blog post for more information about new features and performance improvements in Avalonia 12.2.0!
What's Changed
Enhancements
- Core – Add
IPlatformSettings.PreferredApplicationLanguageAPI by @maxkatz6 in #20108 - Core – Add composition brushes by @zxbmmmmmmmmm in #20181
- Core – Implement unified
IFormattableonColor,HslColorandHsvColorby @NathanDrake2406 in #20919 - Core – Add utility types for glyph outline support (Glyph Outline Part 1) by @Gillibald in #21405
- Core – Implement
GlyphTypeface.GetGlyphOutline(Glyph Outline Part 2) by @Gillibald in #21406 - Core – Implement
ObjectMultiConvertersby @KouniakiosKatakthths in #21428 - Core – Add shaped buffer glyph indices (Glyph Outline Part 5) by @Gillibald in #21501
- Core – Add typed binding expressions by @grokys in #21552
- Core – Add dma-buf external image import to the EGL backend by @drasticactions in #21611
- Core – Add
IImageBrushSource.GetBitmap(), update build/api suppressions by @JimBobSquarePants in #21638 - Core – Implement visual geometry hit testing by @emmauss in #21768
- Core – Add a C# source generator for Avalonia properties by @maxkatz6 in #21797
- Core – Implement support for backdrop effects by @kekekeks in #21826
- Core – Introduce a better OpenGL context management API on top of existing interop APIs by @kekekeks in #21853
- Core – Consolidate the Unicode segmentation trie and add UAX-29 sentence segmentation by @Gillibald in #21875
- Core – Add
RelativeTransformto brushes by @Gillibald in #21881 - Core – Implement a copy-on-write list for
VisualChildren/LogicalChildrenby @MrJul in #21884 - Core – Improve
StorageBookmarkHelper.TryDecodeBookmarkby @jp2masa in #21977 - Core – Add a
BringIntoViewpass to theLayoutManagerby @MrJul in #22002 - Core – Use built-in
float.Lerp/double.Lerpin transitions by @IconHHw in #22043 - Core – Add fvar/avar parsing and the variation axis API (Glyph Outline Part 6) by @Gillibald in #22179
- Core – Add
GlyphTypefacevariation clones (Glyph Outline Part 7) by @Gillibald in #22180 - Core – Add gvar outline deformation (Glyph Outline Part 8) by @Gillibald in #22181
- Core – Add HVAR advance widths (Glyph Outline Part 9) by @Gillibald in #22182
- Core – Add MVAR font-wide metrics (Glyph Outline Part 10) by @Gillibald in #22183
- Core – Add VVAR vertical advances (Glyph Outline Part 11) by @Gillibald in #22184
- Core – Add the
FontVariationsproperty, XAML and animation (Glyph Outline Part 12) by @Gillibald in #22185 - Core – Remove unused internal members by @Evan260 in #22187
- Core – Add .NET 11 SDK target and .NET 11 WASM support by @maxkatz6 in #22196
- Core – Remove mutable
StreamGeometryImplby @MrJul in #22247 - Core – Rotate render target output in the compositor by @kekekeks in #22499
- Core – Add opt-in EGL partial presentation by @kekekeks in #22501
- Core – Add per-area verbosity overloads to
LogToTraceandLogToDelegateby @0x000NULL in #22523 - Core – Add key text, consumed modifiers and native key info to key events by @kekekeks in #22628
- Core – Don't open menu when Alt is pressed with other modifiers by @MrJul in #22652
- Core – Don't write a just-published value back to the source in
TwoWaybindings by @seragAhmed in #22679 - Core – Remove extra
SaveLayerfor opacity masks by @kekekeks in #22798 - Core – Update the .NET SDK to 11.0.100 by @MrJul in #22801
- Core – Remove unused
CompositorDrawingContextProxyby @kekekeks in #22810 - Core – Honor paragraph and first-line indents in text formatting by @Gillibald in #22870
- Core – Update
Avalonia.BuildServicesto 12.0.0 by @MrJul in #22914 - Controls – Add
FlexPanelby @emmauss in #20263 - Controls – Add arrow key scroll navigation to
ScrollViewerby @codecat in #20482 - Controls – Add
JustifyandStretchalignment toWrapPanelby @Poker-sang in #20549 - Controls – Convert Fluent
ControlThemedimension setters toDynamicResourceby @dimension-zero in #21403 - Controls – Add input pane awareness by @emmauss in #21566
- Controls – Add Fluent 2, an updated default theme by @MikeCodesDotNET in #21771
- Controls – Implement
WindowDrawnDecorations.TitleBarDecorationsby @MrJul in #21969 - Controls – Add week numbers support to
Calendarby @timunie in #21981 - Controls – Add generic navigation APIs to page navigation by @emmauss in #22010
- Controls – Add built-in theme tests and fix several bugs found by them by @maxkatz6 in #22216
- Controls – Add
UseFloatingPlaceholdertoAutoCompleteBoxby @kronic in #22305 - Controls – Add an analyzer warning for unchecked
ApplicationLifetimecasts by @maxkatz6 in #22549 - Controls – Add Fluent 2
ColorPickercontrol themes by @robloo in #22569 - Controls – Add an icon element to the Fluent
TabStripItemandTabItemthemes by @emmauss in #22574 - Controls – Refactor Fluent 2 control brush resources to use the
Brushtype and clean up by @emmauss in #22611 - Controls – Use ordinal key comparison in Fluent 2 theme resource providers by @maxkatz6 in #22630
- Controls – Merge control resources into the theme dictionary in our themes by @maxkatz6 in #22637
- Controls – Round the outer spin button of the Fluent
ButtonSpinnerby @seragAhmed in #22699 - XAML – Avoid boxing booleans in compiled binding getters by @NathanDrake2406 in #21878
- XAML – Add support for
CreateSourceInfoin the design window loader by @Unrealiter in #21972 - XAML – Do not strong-name sign in the XAML compiler when
PublicSignis set by @kekekeks in #22313 - XAML – Compact generated XAML identifiers in Release builds by @kekekeks in #22674
- XAML – Move compiled XAML property info creation into a shared factory by @kekekeks in #22676
- XAML – Update the XamlX submodule by @kekekeks in #22710
- Windows – Fix missing system menu on title bar right-click when
ExtendClientAreaToDecorationsHintis enabled by @zrt2399 in #21630 - Windows – Add
Win32PlatformOptions.UseCompositionSwapchainby @kekekeks in #22115 - Windows – Expose the
LabeledByproperty to Windows UI Automation by @kanzaki-chiya in #22671 - Windows – Retry
GetDatawhile the clipboard is held open by @seragAhmed in #22682 - macOS – Fall back to the current event in
BeginMoveDragwhen no mouse-down was recorded by @markzielinski in #21827 - macOS – Use MicroCom smart pointer wrappers in
Avalonia.Nativeby @kekekeks in #22519 - macOS – Flush the render pass synchronously from
updateLayerinstead of running dispatcher jobs by @kekekeks in #22610 - macOS – Reset the cursor only on
AvnView's own tracking area enter/exit by @caesay in #22690 - macOS – Report the
AXTabButtonsubrole for tab items by @jmacato in #22694 - X11 – Implement XShm support by @kekekeks in #21625
- X11 – Implement support for PRIMARY selection by @kekekeks in #21849
- X11 – Ignore
ConfigureNotifyevents sent before our lastXConfigureWindowcall by @kekekeks in #22462 - DRM – Don't block on the just queued page flip in
DrmOutputby @orestbida in #22566 - Android – Add support for cursors by @emmauss in #22438
- Android – Add support for desktop drag and drop by @emmauss in #22451
- Android – Map Avalonia controls to Java TalkBack roles by @emmauss in #22681
- Android – Don't set the input type as password by @kerams in #22685
- Android – Report accessibility focus changes by @emmauss in #22849
- iOS – Render at up to 120 Hz on ProMotion devices and pause the display link when idle (High Refresh Rate Part 1) by @NicholasLachapelle in #22395
- iOS – Deliver touch drags and trackpad momentum at the display refresh rate (High Refresh Rate Part 2) by @NicholasLachapelle in #22412
- iOS – Expose embedded native controls to accessibility by @NicholasLachapelle in #22693
- Browser – Migrate to static web assets for assets bundling, integrate with
OverrideHtmlAssetPlaceholdersby @maxkatz6 in #22266 - Browser – Use scheduler/messagechannel APIs instead of
setTimeoutfor the dispatcher by @kekekeks in #22290 - Browser – Pass input through a queue in WASM memory by @maxkatz6 in #22478
- Headless – Add options for Wayland/macOS-like window positioning and desktop scaling by @kekekeks in #22292
Fixes
- Core – Call
ApplyStylingunconditionally inMeasureCoreby @Fachep in #21572 - Core – Fix
CompositionBrushissues by @Gillibald in #21873 - Core – Update geometry hit testing to consider the stroke region of target geometries by @emmauss in #22231
- Core – Fix geometry hit testing not finding 0-stroke geometries by @emmauss in #22362
- Core – Write an animated value even when an expression has read it by @George-Payne in #22538
- Core – Fix use-after-free when reading font data in
SkiaTypefaceby @NathanDrake2406 in #22659 - Core – Keep runs of different scripts in separate shaping buffers by @Gillibald in #22662
- Core – Keep bitmap alive while it is being saved by @Prince-5785 in #22740
- Core – Copy
RadiusYin theImmutableRadialGradientBrushcopy constructor by @unsafePtr in #22763 - Core – Pass the vertical scale to the visual cache layer by @unsafePtr in #22764
- Core – Use the platform's simulated typeface instead of copying the font file by @Gillibald in #22773
- Core – Give collapsing its own references to the runs it splits by @Gillibald in #22774
- Core – Resolve an assembly by its exact name, not by a prefix by @menes97 in #22793
- Core – Skip disabled elements in
FocusManagertab navigation by @menes97 in #22795 - Core – Apply the multiply opacity only once below an opacity mask in Skia by @kekekeks in #22835
- Controls – Remove the project reference to
Avalonia.Remote.ProtocolinColorPickerby @maxkatz6 in #21959 - Controls – Clip
ContentPresenterandExperimentalAcrylicBorderto rounded bounds by @zrt2399 in #22015 - Controls – Fix empty
FlexPanelsize by @kerams in #22130 - Controls – Fix flex grow in
ScrollViewerby @kerams in #22278 - Controls – Fix
translatedRectcalculation inInputPaneAwareDecoratorby @kerams in #22328 - Controls – Keep the tab strip reachable with Tab after focusing tab content by @Evan260 in #22466
- Controls – Lay out a
RelativePanelchain when the panel has no width by @Evan260 in #22475 - Controls – Fix the Fluent 2
DropDownButtonby @robloo in #22591 - Controls – Fix a few Fluent 2 brush resources by @emmauss in #22636
- Controls – Fix the default transparency background for the Fluent 2 embedded control root by @emmauss in #22650
- Controls – Allow a rounding residual in the
Gridspan distribution assert by @seragAhmed in #22701 - Controls – Fix week numbers shown at the wrong column (Fluent 2) by @timunie in #22756
- Controls – Don't raise an empty
SelectionChangedwhen the selection model is created during init by @menes97 in #22797 - Controls – Show data validation errors in the Simple
ComboBoxandSliderthemes by @jeff377 in #22812 - Controls – Fix missing resources on
TabbedPage,DatePickerandTimePickerinSimpleThemeby @maxkatz6 in #22857 - Controls – Don't clear an automation peer's parent after it has moved to a new parent by @grokys in #22864
- Controls – Fix
FlexPanelrelative flex basis by @MrJul in #22871 - XAML – Use exact signature lookups by @kekekeks in #22725
- Windows – Fix fatal NRE when the input pane is disposed during window close by @dbruning in #22138
- Windows – Fix DirectComposition interop signatures by @MrJul in #22820
- macOS – Pass an empty tooltip instead of null to the native tray icon by @menes97 in #22796
- macOS – Don't report leaf nodes as expandable to accessibility by @jsuarezruiz in #22880
- X11 – Use a property helper to safely read
_NET_WORKAREAby @dpse in #22448 - X11 – Fix touchpad two-finger scrolling with xf86-input-synaptics by @tomba in #22748
- Linux – Fill the DBus tray icon
ToolTipwithTrayIcon.ToolTipTextby @utajum in #22558 - Android – Add a lock to sync the render call and surface create/destroy by @emmauss in #22738
- Android – Fix accessibility node position screen translation by @emmauss in #22862
- Android – Don't block startup waiting for the Choreographer thread by @jsuarezruiz in #22888
- iOS – Cancel touches in progress when the view leaves its window by @NicholasLachapelle in #22526
- Browser – Stop gating dispatcher jobs on
isInputPendingby @kekekeks in #22296 - Browser – Fix
JSHost.Importfrom the WebWorker with fingerprinting enabled by @maxkatz6 in #22330 - Browser – Fix storage stream writes, seeking and reads by @maxkatz6 in #22470
- Browser – Pass the
requestAnimationFrametimestamp toJsExportOnAnimationFrameby @Primeteumm in #22846
Full Changelog: 12.1.6...12.2.0