github AvaloniaUI/Avalonia 12.2.0

28 minutes ago

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.PreferredApplicationLanguage API by @maxkatz6 in #20108
  • Core – Add composition brushes by @zxbmmmmmmmmm in #20181
  • Core – Implement unified IFormattable on Color, HslColor and HsvColor by @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 ObjectMultiConverters by @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 RelativeTransform to brushes by @Gillibald in #21881
  • Core – Implement a copy-on-write list for VisualChildren/LogicalChildren by @MrJul in #21884
  • Core – Improve StorageBookmarkHelper.TryDecodeBookmark by @jp2masa in #21977
  • Core – Add a BringIntoView pass to the LayoutManager by @MrJul in #22002
  • Core – Use built-in float.Lerp/double.Lerp in 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 GlyphTypeface variation 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 FontVariations property, 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 StreamGeometryImpl by @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 LogToTrace and LogToDelegate by @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 TwoWay bindings by @seragAhmed in #22679
  • Core – Remove extra SaveLayer for opacity masks by @kekekeks in #22798
  • Core – Update the .NET SDK to 11.0.100 by @MrJul in #22801
  • Core – Remove unused CompositorDrawingContextProxy by @kekekeks in #22810
  • Core – Honor paragraph and first-line indents in text formatting by @Gillibald in #22870
  • Core – Update Avalonia.BuildServices to 12.0.0 by @MrJul in #22914
  • Controls – Add FlexPanel by @emmauss in #20263
  • Controls – Add arrow key scroll navigation to ScrollViewer by @codecat in #20482
  • Controls – Add Justify and Stretch alignment to WrapPanel by @Poker-sang in #20549
  • Controls – Convert Fluent ControlTheme dimension setters to DynamicResource by @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.TitleBarDecorations by @MrJul in #21969
  • Controls – Add week numbers support to Calendar by @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 UseFloatingPlaceholder to AutoCompleteBox by @kronic in #22305
  • Controls – Add an analyzer warning for unchecked ApplicationLifetime casts by @maxkatz6 in #22549
  • Controls – Add Fluent 2 ColorPicker control themes by @robloo in #22569
  • Controls – Add an icon element to the Fluent TabStripItem and TabItem themes by @emmauss in #22574
  • Controls – Refactor Fluent 2 control brush resources to use the Brush type 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 ButtonSpinner by @seragAhmed in #22699
  • XAML – Avoid boxing booleans in compiled binding getters by @NathanDrake2406 in #21878
  • XAML – Add support for CreateSourceInfo in the design window loader by @Unrealiter in #21972
  • XAML – Do not strong-name sign in the XAML compiler when PublicSign is 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 ExtendClientAreaToDecorationsHint is enabled by @zrt2399 in #21630
  • Windows – Add Win32PlatformOptions.UseCompositionSwapchain by @kekekeks in #22115
  • Windows – Expose the LabeledBy property to Windows UI Automation by @kanzaki-chiya in #22671
  • Windows – Retry GetData while the clipboard is held open by @seragAhmed in #22682
  • macOS – Fall back to the current event in BeginMoveDrag when no mouse-down was recorded by @markzielinski in #21827
  • macOS – Use MicroCom smart pointer wrappers in Avalonia.Native by @kekekeks in #22519
  • macOS – Flush the render pass synchronously from updateLayer instead 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 AXTabButton subrole 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 ConfigureNotify events sent before our last XConfigureWindow call by @kekekeks in #22462
  • DRM – Don't block on the just queued page flip in DrmOutput by @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 OverrideHtmlAssetPlaceholders by @maxkatz6 in #22266
  • Browser – Use scheduler/messagechannel APIs instead of setTimeout for 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 ApplyStyling unconditionally in MeasureCore by @Fachep in #21572
  • Core – Fix CompositionBrush issues 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 SkiaTypeface by @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 RadiusY in the ImmutableRadialGradientBrush copy 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 FocusManager tab 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.Protocol in ColorPicker by @maxkatz6 in #21959
  • Controls – Clip ContentPresenter and ExperimentalAcrylicBorder to rounded bounds by @zrt2399 in #22015
  • Controls – Fix empty FlexPanel size by @kerams in #22130
  • Controls – Fix flex grow in ScrollViewer by @kerams in #22278
  • Controls – Fix translatedRect calculation in InputPaneAwareDecorator by @kerams in #22328
  • Controls – Keep the tab strip reachable with Tab after focusing tab content by @Evan260 in #22466
  • Controls – Lay out a RelativePanel chain when the panel has no width by @Evan260 in #22475
  • Controls – Fix the Fluent 2 DropDownButton by @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 Grid span 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 SelectionChanged when the selection model is created during init by @menes97 in #22797
  • Controls – Show data validation errors in the Simple ComboBox and Slider themes by @jeff377 in #22812
  • Controls – Fix missing resources on TabbedPage, DatePicker and TimePicker in SimpleTheme by @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 FlexPanel relative 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_WORKAREA by @dpse in #22448
  • X11 – Fix touchpad two-finger scrolling with xf86-input-synaptics by @tomba in #22748
  • Linux – Fill the DBus tray icon ToolTip with TrayIcon.ToolTipText by @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 isInputPending by @kekekeks in #22296
  • Browser – Fix JSHost.Import from the WebWorker with fingerprinting enabled by @maxkatz6 in #22330
  • Browser – Fix storage stream writes, seeking and reads by @maxkatz6 in #22470
  • Browser – Pass the requestAnimationFrame timestamp to JsExportOnAnimationFrame by @Primeteumm in #22846

Full Changelog: 12.1.6...12.2.0

Don't miss a new Avalonia release

NewReleases is sending notifications on new releases.