Releases: unoplatform/uno
4.2.6
Uno Platform 4.2 – .NET 6 Mobile RC1, Performance
As of last week’s release of .NET 6 Mobile RC1, Uno Platform is now following the updates to ensure that you have access to the latest features provided by the .NET runtime.
You can read the full post here.
As per Microsoft’s announcement, the .NET 6 Mobile APIs are now considered stable for iOS, Android, and Mac Catalyst. This enables applications and libraries to be developed without having to deal with any breaking changes in future .NET Mobile releases. As Uno Platform takes a dependency on dotnet runtime, this is important as we can stabilize our own support for iOS, Android and mac Catalyst targets.
Since our previous release about six weeks ago, we also made a batch of changes to fix the support for localization of iOS, macOS and Catalyst apps, based on the new behaviors of .NET 6. In total there were over 190 new features and fixes completed, around Geolocation, focus and keyboard management, Android/Skia/WebAssembly performance, and more. For those who like stats – that’s about 6 closed PRs per business day; we are definitely picking up velocity even more.
As always, to upgrade to the latest bits and use .NET 6 Uno Platform app templates, you’ll need to use uno-check.
You can find up-to-date information about uno-check in our docs.
To install Uno-check:
dotnet tool install -g uno.check
To update Uno-check if you had it installed already
dotnet tool update -g uno.check
You can then run it with:
uno-check --pre
Important note:
If you were already using Uno 4.1.x, had run uno-check and were using VS 17.2 preview 3 or earlier, upgrading to 17.2 Preview 4 or later will cause mobile workloads to become desynchronized. To fix your environment, you’ll need to run the following command:
dotnet workload install ios android maccatalyst macos --from-rollback-file https://aka.ms/dotnet/maui/rc.1.json --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json
Community Contributions
We'd also like to thank the community contributors for this release:
- Android
FileOpenPicker
mime types,DisplayInformation
andGeolocator
updates (by @pkar70) - Documentation updates (by @workgroupengineering, @mtaheij, @mikeirvingweb, @xperiandri, @AnthonyDParkhurst, @TopperDEL, @baskren, @LokiMidgard)
- Source generators updates (by @Youssef1313)
PercentFormatter
,PermilleFormatter
,DecimalFormatter
(by @MohammadHadi2031)- Fixed support for WPF and net47 (by @trungnt2910)
Full change log:
Features
- Add basic support for entered/leaving background deferral 3eb2562
- Add support for overriding the MessageDialog style 95ada29
- Add support x:Bind to static event handlers 1e30a7d
- Android FileOpenPicker MIME types eca4cc1
- Basic ListView keyboard navigation b092f72
- BringIntoViewRequested handling on ScrollContentPresenter 3d09430
- cascade down update to Presenter 760906e
- Change Release package defaults for Android app template 0c4eefc
- CloseRequested event on Skia 9f25358
- ContentDialog-based MessageDialog fbc932d
- CoreApplication EnteredBackground and LeavingBackground events e461b69
- Deferral.Dispose completes the deferral b510d0b
- ElevatedView on Skia 2180e23
- Enable focus states on SelectorItem 73d176d
- Focus support in managed FlipView 58ea2f8
- Implemented feature SelectedText on TextBox 0775781
- more detailed ClassLib info for VB (recreated) a9de33e
- Pass arguments to LaunchActivatedEventArgs on macOS 21e664b
- Support for BringIntoViewOptions 5c45fc0
- Support for UIElement.BringIntoViewRequested routed event d46a2e7
- Update API surface to match Windows 11 22000 SDK efe34fb
- Update Sync generator to 22000 9305aa0
- arrange_dirty_path: First working version of arrange dirty path on Skia & Wasm 56b69c7
- DecimalFormatter: Implement FormatDouble and ParseDouble 3e103af
- dirty_measure_ios: Fixed the broken build for iOS. Not actual implementation of DIRTY_MEASURE_PATH for iOS. ab86102
- FolderPicker: [Skia][WPF] Added support at SuggestedStartLocation and CommitButtonText 3d8bf64
- ListView: incremental loading support for skia/wasm 1410316
- updated Geolocator for Android 280a006
- gtk: Add OpenGL acceleration e89870d
- macOS: Add SelectedRange on TextBox fcaccd6
- measure_dirty_path: Implemented the Dirty_Measure_Path on Android. Should bring significant perf improvements on this platform. 44bc0ed
- PercentFormatter: Implement FormatDouble and ParseDouble e41759f
- xaml: support named params in MarkupExtension 428b08c
- Support WUX ProgressRing everywhere eb13011
- PermilleFormatter: Implement FormatDouble and ParseDouble 0169c51
- Support Enter, Space and Escape on ComboBox fb52456
- Support Up & Down and keyboard item selection on ComboBox d61ce66
- Use theme-aware WASM splash screen by default 7c63800
- textbox: Update IsEnabled 6025109
- fix!: Launch arguments should be separated by space 19ef842
- feat!: Bump UWP version to 18362 9f41fd4
- feat!: Bump to net6 preview 13.2 dee6870
Performance Improvements
- Adjust resource resolver to avoid ICU based comparisons on net6+ 1244199
- Disable logging in release builds 26137e2
- Don't materialize x:Name-marked styles eargerly inside of uno 39a7e70
- Fix regression in SpecializedResourceDictionary 44a49f9
- android: Don't refresh memory statistics too often 259e365
- Scavenge TextPaintPool storage 0d4c160
BREAKING CHANGES
- In UWP/WinAppSDK the launch arguments are separated by space only, whereas Skia targets used semicolon before.
- Bumps the target UWP version from 17763 to 18362
- This update contains binary breaking changes to follow
.NET 6 Mobile iOS/macOS/Catalyst API changes. It requires Visual Studio
2022 17.2 Preview 1 or later and cannot work on previous VS 2022 releases.
Bug Fixes
- gtk: Fix OpenGL render surface flickering dd529f4
- net6: Auto include BundleResources, show excluded compile items 42c6eba
- net6: Remove unused InvariantGlobalization configuration 6c1f1d3
- Adjust
MonoAndroidAssetsPrefix
to use Assets from shared project eb5d0aa - Adjust default plist values for net6 mobile targets 8fd4390
- Adjust flyout position in visible bounds 2103533
- Adjust resources generation for net6.0-ios new targets eed7596
- Adjust ScrollContentPresenter.ViewportWidth/Height on WASM 9a4e884
- Adjust template for .NET 6 RC1 preview SDL 9567af1
- Adjust VisualParent property to return Selector for SelectorItems bdfc675
- Apply Review 635f43f
- Apply Review 1d233de
- Apply zoom and content offset simultaneously on iOS e92379f
- BorderThicknessProperty warning on skia/wasm 96a46d4
- CI for not used variable 7c94ce5
- Clamp Popup placement in visible bounds 09a2c58
- Decrease default TreeViewItem glyph size e821bed
- Enable XAML Intellisense in VS 2022 for non-WinUI/UWP projects 050b537
- Ensure that TextVisual does not render when size is empty 82aabd6
- FlipView: Flipping on WASM and Skia 811266b
- net6: [iOS] Ensure current culture is set at Application startup ac58dce
- ContentDialog does not show up on startup on WPF 5bff961
- convert-sourcetree-to-winui.cmd 79115b5
- deobsoleting DisplayInformation (Android) 569935f
- Do not apply ScrollOffsets if the source element is the scroll port b115cb4
- Don't throw if DTE SolutionBuild is not available 1bdaa10
- Ensure compatible numeric types are compared to avoid exceptions in Verify bf96acc
- Ensure DeferralManager.CompletedSynchronously is set correctly before Completed execution 00f5f23
- field not available for target 155f2d9
- fixed error loading ms-appx asset files with spaces - all platforms 44d391f
- Generate specific platforms for NotImplemented types bd95a0d
- Generating API sync for Composition & Dispatching in UWP mode c7a6185
- NativeFrame runtime tests failing without outer scroller a43b0e2
- NavigationView selection indicator unreliable for minimal display mode 25e99af
- Samples app local debugging 0296ab1, closes /github.com/dotnet/android/issues/6697#issuecomment-1034784286
- SelectionModel and SelectedItems enumeration 6652358
- Set iOS Window background to Clear instead of White 568d988
- Use native MessageDialog on Android, iOS and macOS eb7ee3e
- WASM ScrollContentPresenter offsets are immediately set after scroll request without animation d149662
- catalyst: Force enable globalization and static registrar, disable interpreter 1e252d5
- catalyst: Include ios XAML for catalyst 00144d4
- catalyst: Move to newer Preview 14 API breaking changes 89e70c1
- CommandBar: Remove 1px "shadow" from iOS native CommandBar 0a4eb04
- DependencyObject: Fix possible infinite loop on ancestor lookup acfb5ae
- FolderPicker: [Skia][WPF] Applied Codacy suggestions bc4db1e
- getparent: Never call
.GetParent()
in an element while it's being finalized. fb10dc8 - itemscontrol: Fixed problem with internal assignment of indexes to elements in ItemsControl 4b63312
- keyboard: [Android] Improve keyboard size info on 30+ 607992d
- layout_update: Fixed a potiential "Layout cycle detected." exception 8d6075d
- listview: Fix flickering when reordering items on Android 4614b38
- NameScope: Ensure NameScope is not overriden for XAML backed controls b2c8a47
- pointers: Fix gesture recognizer not completing drag manipulations internally. a605c4e
- textblock: Text size were incorrect on Ma...
4.1.9
Uno Platform 4.1 Update for .NET 6 Mobile Preview 14 and VS 2022 17.2 Preview 2
The .NET team has been steadily releasing a set of updates to the .NET 6 Mobile previews. Last week's update was Preview 14, which came at just about the same time as Uno Platform 4.1 release. Following .NET 6 mobile Preview 14, we’re publishing the Uno Platform 4.1.9 service update.
This update includes a new set of binary breaking changes added in .NET 6 Mobile Preview 14, which requires the use of Visual Studio 17.2 Preview 2. If you update to Preview 2, you will need to be on Uno Platform 4.1.9 or later.
Using .NET 6 Mobile Preview 14 with Uno Platform projects
To use this new preview in Uno Platform projects, you’ll need a few steps:
-
Install the latest uno-check preview
dotnet tool install -g uno.check --version 1.2.0-dev.10
-
Or update to the latest uno-check preview
dotnet tool update -g uno.check --version 1.2.0-dev.10
-
Then run the following:
uno-check --pre
-
If you’re building on a mac, either directly or through VS for Windows, you’ll need to run
uno-check
on the mac as well. -
Make sure that your Visual Studio 2022 Uno Platform extensions are updated to 4.1.9 (it should be automatically updated)
-
Update your nuget packages to Uno.UI.* 4.1.9 or create a new project from the templates.
Note that if you intend to build for iOS, Xcode 13.3 is required and that this version of requires macOS Monterey.
4.1.8
It has been just over 3 months since our 4.0 release, and we’ve used that time to focus on performance as well as bringing the latest .NET 6 and even .NET 7 innovation to Uno Platform. By simply updating your application to the newest bits you will notice a significant boost to your app performance.
This release packs over 200 new feature requests, bugs, and issues you raised. We welcomed a few great contributions from our community which is now over 210 contributors strong! Thanks for all you bring to Uno Platform.
For more information about the release, read our blog post.
Important note about .NET 6 Mobile support
The current support for .NET 6 Mobile Preview 13 requires VS 2022 17.2 Preview 1 or later, 17.0.x and 17.1.x are not supported, and naturally Uno Platform will face the same constraints. It’s also worth noting that with .NET 6 mobile Preview 14, Microsoft will introduce an additional (and likely final) set of binary breaking changes, and we’ll publish an update to Uno nuget package to align with those changes.
Once you have 17.2 Preview 1 or later installed, use uno-check --preview
to setup your environment.
Features
- element_measure_dirth_path_disabled: Added the ability to deactivate the new InvalidateMeasureDirtyPath at element-level instead of just globally (6779b34)
- invalidate_measure: Ensure the .MeasureOverride() is not called when not required after invalidation. (e406239)
- max_layout_iteration: Limit the number of iterations while trying to measure elements. (23e5c90)
- measure_dirty_path: Implemented MeasureDirtyPath on both Skia and Wasm platforms (29c5b45)
- pointers: Add basic support of pointers injection API on Skia and macOS (fe1c9bd)
- textbox: Update IsEnabled (6025109)
- Add ability to configure if marhsal and/or unmarshal method should be generated when using TSMessageAttribute + generated TS messages are now in the same namespace as where they are declared in C# (6459564)
- Add Skia memory manager support (699731b)
- Add support for
XamlRoot.RasterizationScale
(8ff10bf) - Add support for Description property on common controls (46e0956)
- Add support for GC awareness for internal ArrayPool (e8e63f7)
- Add support for memory usage aware template pooling (6c98490)
- Add Title bar test status reporting to UnitTestsControl (af84896)
- Added DynamicDataAttribute support to RuntimeTest (c5987eb)
- Bump to Android 12 (1e9cf32)
- DPI scaling on GTK (a961de4)
- FolderPicker for Skia.WPF (6f3f596)
- Improve Skia TextBoxView overlay positioning and sizing (b8240f8)
- Support for Canvas.ZIndex on Skia (c51e44e)
- update to .NET Mobile Preview 12 (95fa32f)
- flyout: Implement FlyoutBase.IsOpen (ef3cf3d)
- frameworktemplate: Improved the logging of
FrameworkTemplatePool
to show the actual factory lambda (d59c30f) - hotreload: Support x:Bind to properties in hot reload scenarios (1f1a8a6)
- ios: RequestedTheme will now affects KeyboardAppearance (bfacd86)
- pointers: [PERF] [WASM] Marshal pointer events instead of serializing them (44df154)
- wasm: Add MemoryManager support (66038f1)
- Added single project support for windows packaging in dotnet new (81e0052)
- EasClientDeviceInformation (fb8ba79)
- Initial page focus on WASM using browser keyboard navigation (7975615)
- more detailed GeoLocator UI test (744237b)
- Per-monitor DPI scaling on Skia.WPF (13eeac8)
- Replace Page with correct type when reloaded (64a25da)
- Support CreateFromStringAttribute in XamlReader (5258d49)
- NativeCtorsGenerator: Generate nested types properly (1d772b9)
- reapply_theme: Added the ability to reapply application theme to be used when the colors are manually changed in ResourceDictionary, to force the reevaluation of the ApplicationTheme without having to toggle. (dc1a660)
- Support LineGeometry, RectangleGeometry, and EllipseGeometry in Skia (a5244c0)
Performance Improvements
- Dispose HashtableEx to return memory to the pool (3db5555)
- Enumerate children in ContainerVisual via IList and for (5cca9d7)
- Merge all system resource dictionaries to improve lookup performance (6d49af8)
- Reduce allocations in BindingItem.SubscribeToPropertyChanged (2740c77)
- Reduce delegates use in BindingPath property changed (b93c527)
- Reduce interop invocations during MeasureChildOverride (19625de)
- Reduce memory indirect allocations from the use of DispatcherConditionalDisposable (a5751f5)
- Remove indented string builder from InvokeJSWithInterop (2a239b1)
- Scavenge TextPaintPool storage (0d4c160)
- Use
ArrayPool<T>
forGrid
'sCellCacheStackVector
inner storage (1572d6a) - Use field aliasing to improve Color.GetHashCode and Color.Equals (429d367)
- memory: Reduce
ConditionalDisposable
pressure (3b4bf41) - memory: Reduce memory pressure on shape set fill (76998f0)
- memory: Remove delegate for UIElement GestureRecognizer (2e34584)
- memory: Remove RegisterDefaultValueProvider delegate in favor of UIElement cast (c2d8eb9)
- Style: Implement Style.IsSealed to allow for flattened lists caching (1970c77)
- timeline: Remove the use of events and disposables (922bb4b)
- fix(pointers)!: [iOS][Android] Enter will now be raise...
4.0.7
For a comprehensive description of the Uno 4.0 release, please read our blog post.
As we’re continuing the alignment with the WindowsAppSDK, we’ve made some binary and source breaking changes in the Uno.UI 4.0 NuGet packages.
Most of these changes are minor and are generally present to remove the use of uno-specific conditional code. You can find additional information on how to migrate to Uno 4.0 on our documentation site.
See the full change log below:
Features
- Add a FrameNavigationHelper to allow apps to access helper properties on Frame and its PackStackEntries 3826bf1
- Add automatic restore after dotnet new 848ebcc
- Add DispatcherQueue on CoreWIndow and CoreApplicationView e176c77
- Add DispatcherQueueHandler and DispatcherQueuePriority 1425e7b
- Add mixed C#/XAML hot reload support 6d3ec36
- Add support for
x:Name
hot reload 083fce5 - Add support for CustomVisualStateManager 1e7103f
- Add support for full uri in RC endpoint c5849cc
- Add support for local RC on remote environments 898acca
- Add support for multiple XamlReader types conversions 8c4845d
- Add XamlReader support for theme dictionaries d887a43
- Adjust the Popup hierarchy 13ec2fb
- Adjust vscode tasks/launch configurations 9f8eb9c
- Generate C# reload cookie for omnisharp compatibility bcaa4fb
- Android: Provide access to BaseActivity events from SpanningRectsExtension 23cca70
- listview: [iOS] [Android] Support ItemsPresenter.MinHeight 6dfc251
- rc: Add support for metadata update 8387262
- xamlreader: Add reload support for event bindings 2c1f7b2
- Add support for WinAppSDK 1.0-experimental1 31f45ea
- Align enums (netstandard2.0) f8abe44
- Align Panel DPs 1930257
- Align properties (netstandard2.0) fdcf4c5
- Align RelativePanel methods 12fb3ff
- Align Uno.Foundation (netstandard2.0) 9a08e12
- Align Windows.System.VirtualKey 5397faa
- Implement FileSavePicker for Gtk c946681
- Implement TextBox Description Property e14dd76
- Implement WinUI CommandBar and AppBar ce12824
- Improve generation cancellation for net5 and net6 4b612b6
- initial setup for foldable support c0c0833
- NavigationView InfoBadge integration 2e495ad
- Point users to implemented versions of obsolete WUX controls 9cdaacb
- Respond to top-level resource updates 8df6db9
- Update to WinAppSDK 1.0 9fd0a0c
- Update TwoPaneView to latest WinUI b221201
- android: Adjust Foldable screen nuget package naming db1d7ae
- Border: Add ability to use GradientBrushes for BorderBrush af760ff
- dragdrop: Add support of preview of dragged element on iOS and Android b749632
- GTK: Detect ApplicationPreferDarkTheme property change e6a173f
- IncrementNumberRounder: Implement RoundDouble Method 0fdab8e
- NumeralSystemTranslator: Implement TranslateNumerals method for Arab and ArabExt NumeralSystem value ee3e611
- perf: Improve perf of the ObjectAnimationUsingKeyFrame 3818924
- pointers: [GTK] Implement native pointer capture 624631a
- SignificantDigitsNumberRounder: implement RoundDouble method e30b006
- vsix: Restore Xamarin template for VS2022 e0a7bde
- WPF: Observe system theme during runtime f1ea619
- xamlreader: Support StaticResource assignation to non-DP fd535d2
- xamlreader: Update Setter.Value when theme changes 7ba8c58
- GetRadiosAsync() for Android 110d466
- Improve generated enums eccc12e
- Initial API surface validator b296076
- Port RadioMenuFlyoutItem 9b388c1
- Support Dark theme in Samples app 2f93a19
Bug Fixes
- animation: Fixed a problematic case where a native animation can be 'lost' if the GC is run during the duration of the animation, preventing the animation from being removed and leaving the UI in an undetermined undesired state. 81547ef
- template: Adjust dotnet new unoapp 57657f2
- vscode: Remove duplicate sln block a0021b8
- Add error message when linker is enabled during EnC session 7c261dd
- Add keepalive messages for RC client abc5093
- Add missing Immutable assembly for hot-reload generators 2f64555
- Add missing NavigationViewItemPresenter.InfoBadge property dabfe9a
- Add missing short flags for dotnet new 2294217
- Add server-side keepalive 8965b2f
- Add support for globbing in the shared project for vscode compatibility 87b32c3
- Adjust dotnet detection for C# hot reload 74e7803
- Adjust hot reload support for VS 2022 a6727d8
- Adjust InfoBarPanel namespace to match WinUI 9784afa
- adjust remote control target to net6 1a95097
- Adjust removal of uno websockets dependency 9d3feb2
- Avoid jumpy ScrollViewer visibility on Skia 0573b47
- Avoid TextChanged loop in GTK 997fd15
- Cache IsApiContractAvailable properly 6feacd3
- Capture all xaml handlers f26804a
- Disable assembly loading feature in XamlSchemaContext c2ddc8f
- Disable rolsyn generators for below MSBuild 17, fallback to uno source generators 1f5868d
- Dispose appinsights configuration 67deda2
- Don't call CloseAllPopups on Frame navigation 3438fee
- Don't create a window while checking dotnet version ca1d8ae
- Don't fail on missing metadata updater (net5 support) ab1c748
- Don't initialize telemetry on design time builds c7ffe08
- Don't regenerate source for ResourceDictionary runs adbd48d
- Fix support of the CustomVisualStateMamager 4cb5983
- IndexOutOfRange in DisplayRegionHelper.GetRegionInfo a4d301d
- metadata update after XAML hot reload breaks compilation 1c1d352
- Observe C# file changes 5abdebd
- Port IsPaneVisible fix from WinUI (microsoft/microsoft-ui-xaml#6227) d52b71e
- Propagate cancellations for more locations 1548c75
- Remove deprecated GenerateBuild for VS2022 compatibility b8cf02a
- FoldableApplicationViewSpanningRects: change Bounds pix to dip 13a8c44
- FoldableApplicationViewSpanningRects: remove dependency on MainActivity 4ded713
- VS2022 23c4467
- dragdrop: Fix support of transparent control in DragUI ef0b6fd
- ItemsControl: [Android] Adjust collection update reset for ComboBox 8581995
- ItemsControl: Fix for applying ItemContainerStyle dc7a7a9
- listview: [Android] Correct scroll offsets if necessary when scrolling upwards in list 5e8bce5
- listview: [Android] Fix crash on animated collection change 96cb63c
- listview: [Android] Fix crash when animating item 7d05e4c
- pointers: Improve relialibilty of hold gesture by always starting a timer on press when hold has been enabled. 4d18f58
- reg: ensure both net6/xamarin templates don't share ids 8ac1147
- TextBox should not get focused while manipulating ScrollViewer 87c9626
- listview: [Android] Fix flicker and clipping when ListViewItem.Margin is set 801f51c
- reg: [Android] Fix application content squeezed top left 595d4ea
- winui: Adjust DispatcherQueue implementation 263f914
- Add workaround for editorconfig race condition 787c644
- Bump x:Load timeout for large tests 45bd906
- Make sure that an element can invalidate itself (and its parents) while in being measured / arranged 6f30b05
- Border: Allow null BorderBrush to be set decb376
- calendar: Fix CalendarDatePicker cannot be scrolled when re-opened d161c91
- docs: Fix a few typos in VS2022 article f3e0a12
- docs: headers' anchor visibility is now hover 6dcf009
- listview: [iOS] Fix container reuse by template 868446f
- listview: [WASM] [Skia] Correct scroll offsets if necessary when scrolling upwards in list cd74fd9
- perf: Do not box Point for equality check a4d673d
- reg: Fix CornerRadius support on Border 9f0b463
- reg: Move DispatcherQueue to WinUI location 443a76f
- reg: Popup light overlay's was not rendered properly c2fcd60
- reg: Restore sizechanged propagation 30b0a0e
- Remove duplicate guids in solution file 4935613
- Skip generation run info for design-time builds 63d5ab5
- Use proper reference path validation for resource generation 18a4d6d
- VS Remotre control .NET version lookup 80ad551
- calendar: Fix initial scrolling state of the CalendarView d68c05f
- DependencyObjectGenerator: Place BindableAttribute on the correct type 852265c
- docs: Incorrect NuGet package name in logging.md c549ddc
- dotnetnew: Remove invalid solution filters in
dotnet new unoapp
11d4b56 - DualScreen: add RecyclerView to try and address linker issue 1b04f21
- DualScreen: attempt to address possible linker issues f3d3052
- DualScreen: remove unnecessary CreateInstance call in SamplesApp.Droid 225d0f2
- Duo: Observe all configuration changes for samples app 9d35b7b
- effectiveviewport: [Android] The SCP is now the element flagged as ScrollHost, like on UWP 43f56d0
- effectiveviewport: [iOS] The SCP is now flagged as ScrollHost f4b1937
- effectiveviewport: Fix effective viewport computation 3448722
- effectiveViewport: Make sure to raise the event when initializing multiple elements with EVP handlers 2ee3b50
- Foldable: fix bad merge 33586e0
- Foldable: update to use Foundation.Logging 96a5762
- FoldableApplicationViewSpanningRects: remove testing hack dcbcb14
- FoldableApplicationViewSpanningRects: revert change Bounds pix to dip 3b2b2a1
- HitTest: Check for Clip property for ClippingBounds 97152dd
- listview: Fix D&D UI not reporting move while reordering items 30fd8d3
- menuflyout: Ensure MenuFlyout nested submenus stay on screen cd13998
- pointers: [iOS-simulator] Improve debug by starting a timer for Holding on iOS when in simulator 3c6ce3d
- pointers: [Skia] Make sure to also release impiclit captures on pointer realease f3d53bc
- pointers: Make sure to abort drag manipulation as soon as possible if not touch pointer 1045c76
- pointers: Release implicit captures on manip completed d307101
- reg: Fix EVP not prog...
3.11.6
Uno Platform's 3.11 release ships 160+ features and bug fixes and adds support for .NET 6 RTM with all related improvements.
As Microsoft had announced the delay for .NET 6 support for Android and iOS, we've re-introduced Xamarin-based templates for Visual Studio 2022. Additionally, the support for preview .NET 6 Android and iOS has now been moved to 17.1 Preview 1.
In Visual Studio 2022, you'll find now two templates:
- One named Multi-Platform App (UnoPlatform|xamarin), which uses the existing stable Xamarin "Classic". It is the same as found when using Visual Studio 2019.
- One named Multi-Platform App (UnoPlatform|net6), which uses the .NET 6 preview support for iOS, Android, macOS and Catalyst and requires Visual Studio 17.1 preview 1.
You can setup your environment with Uno.Check
1.0.2 for Windows, macOS and Linux, which you can install as follows:
dotnet tool install -g uno.check
Then run:
uno-check
Here's a summary of the features for this release:
- Support for VS 2022 and .NET 6 RTM
- Drag and drop preview element support on iOS and Android
NumeralSystemTranslator
for Arab Numeral System- Native pointer captures for GTK
FileSavePicker
for Gtk- Support for
RadioMenuFlyoutItem
- Support for
IncrementNumberRounder
andSignificantDigitsNumberRounder
- Support of
GetPeerRadioAsync
As always, many thanks to our contributors:
- @pjgpetecodes for a Raspberry Pi tutorial
- @thomasclaudiushuber, @xperiandri, for documentation updates
- @MohammadHadi2031 for the SignificantDigitsNumberRoundersuport
- @pkar70 for the support of
GetPeerRadioAsync
- @Jadhielv for dotnet new templates updates
- @trungnt2910 for UIElement clipping updates
- @workgroupengineering for Hot Reload performance updates
You'll find below the full change log for this release.
Features
- Android: Provide access to BaseActivity events from SpanningRectsExtension 23cca70
- listview: [iOS] [Android] Support ItemsPresenter.MinHeight 486e8eb
- vsix: Restore Xamarin template for VS2022 7fb276a
- Add a FrameNavigationHelper to allow apps to access helper properties on Frame and its PackStackEntries 3826bf1
- Add support for ios/android C# hot reload in net6 template 1414414
- Add support for WinAppSDK 1.0-experimental1 31f45ea
- GetRadiosAsync() for Android 110d466
- implements AppMemoryUsage and AppMemoryUsageLimit for Android bd55b64, closes #5891
- Improve generation cancellation for net5 and net6 4b612b6
- Support Dark theme in Samples app 2f93a19
- Border: Add ability to use GradientBrushes for BorderBrush af760ff
- dragdrop: Add support of preview of dragged element on iOS and Android b749632
- NumeralSystemTranslator: Implement TranslateNumerals method for Arab and ArabExt NumeralSystem value ee3e611
- perf: Improve perf of the ObjectAnimationUsingKeyFrame 3818924
- pointers: [GTK] Implement native pointer capture 624631a
- VS2022: Add support for uno remote control 178f682
- vsmac: Add support for unoapp template solution filters c240f34
- Implement FileSavePicker for Gtk c946681
- Implement MenuBarItemAutomationPeer ddd0bed
- make versioned fluent resources linker friendly 52d3bcc
- Port RadioMenuFlyoutItem 9b388c1
- Replicates CalendarView style fixes for fluent 2 e61d99c
- Upgrade to .NET 6 RC1 d110581
- Vector3 XAML conversion 2aa0be9
- IncrementNumberRounder: Implement RoundDouble Method 0fdab8e
- SignificantDigitsNumberRounder: implement RoundDouble method e30b006
Performance Improvements
- hotreload: Reduce the memory allocation d582d9e
- reg: Fix performance regression in fast convert da59fc5
- wasm: Place loaded/unloaded exception handling behind a flag 9cd9f35
- Add the ability to disable SetTargetValue exception handling 9eb4efa
- Additional changes to mitigate PG-AOT dotnet/runtime issue #56309 218fd00, closes #56309 #7005
- Additional changes to mitigate PG-AOT dotnet/runtime issue #56309 ba58785, closes #56309 #7005
- Adjust Grid, StoryBoard and VisualStatGroup enumerations 5b112e9
- Apply various workarounds for dotnet/runtime issue #56309 5cbbec2, closes #56309
- Remove foreach in FrameworkTemplatePool dc0bc5f
- Remove foreach in ItemsControl.UpdateItems b34954e
- Remove try/catch handling in OnFwElt Loading/Loaded/Unloaded 17f2e4f
- wasm: Don't use try/finally in Grid measure/arrange fb22656
BREAKING CHANGES
- fix!: Fix resource dictionary path handling 30f21ac
- Source paths starting with '/' are now considered relative to project root instead of current file.
Bug Fixes
- Fix the wasm only CalendarViewCrippledAnimationStyle for fluent v2 dd3ac57
- animation: Fixed a problematic case where a native animation can be 'lost' if the GC is run during the duration of the animation, preventing the animation from being removed and leaving the UI in an undetermined undesired state. 81547ef
- Border: Allow null BorderBrush to be set decb376
- calendar: Fix CalendarDatePicker cannot be scrolled when re-opened d05bbc8
- calendar: Fix initial scrolling state of the CalendarView 50829e8
- DependencyObjectGenerator: Place BindableAttribute on the correct type 852265c
- docs: Fix a few typos in VS2022 article f3e0a12
- docs: Incorrect NuGet package name in logging.md c549ddc
- dragdrop: Fix support of transparent control in DragUI ef0b6fd
- effectiveviewport: [Android] The SCP is now the element flagged as ScrollHost, like on UWP 43f56d0
- effectiveviewport: [iOS] The SCP is now flagged as ScrollHost f4b1937
- effectiveviewport: Fix effective viewport computation 3448722
- effectiveViewport: Make sure to raise the event when initializing multiple elements with EVP handlers 73d782d
- HitTest: Check for Clip property for ClippingBounds 97152dd
- ItemsControl: [Android] Adjust collection update reset for ComboBox 8581995
- ItemsControl: avoid rebinding containers on collection change 4ed5bc4
- ItemsControl: Fix for applying ItemContainerStyle dc7a7a9
- listview: [Android] Correct scroll offsets if necessary when scrolling upwards in list 5e8bce5
- listview: [Android] Fix crash on animated collection change 96cb63c
- listview: [Android] Fix crash when animating item 7d05e4c
- listview: [Android] Fix flicker and clipping when ListViewItem.Margin is set 7425947
- listview: [iOS] Fix container reuse by template 868446f
- listview: [WASM] [Skia] Correct scroll offsets if necessary when scrolling upwards in list cd74fd9
- listview: [WASM] Support removing item while dragging 3c6e6e4
- listview: Fix D&D UI not reporting move while reordering items 30fd8d3
- menuflyout: Ensure MenuFlyout nested submenus stay on screen cd13998
- perf: Do not box Point for equality check a4d673d
- pointers: [iOS-simulator] Improve debug by starting a timer for Holding on iOS when in simulator 3c6ce3d
- pointers: [Skia] Make sure to also release impiclit captures on pointer realease f3d53bc
- pointers: Ensure that a manipulation cancelled by ManipStarting event is cleanup e1f5543
- pointers: Improve relialibilty of hold gesture by always starting a timer on press when hold has been enabled. 4d18f58
- pointers: Make sure to abort drag manipulation as soon as possible if not touch pointer 1045c76
- pointers: Release implicit captures on manip completed d307101
- reg: [Android] Fix application content squeezed top left 595d4ea
- reg: ensure both net6/xamarin templates don't share ids 0f62edd
- reg: Fix CornerRadius support on Border 9f0b463
- reg: Fix EVP not progated on native elements 42ac6dc
- reg: Fix EVP sometimes not propagated properly 932b82f
- reg: Fix support of Android versions below 30 (including UI test failing on CI) 07c3d23
- reg: Fix support of scroll offsets in ViusalTreeHelper c72890c
- reg: Fix Viewport not updated on first load 7f2409b
- reg: Popup light overlay's was not rendered properly c2fcd60
- scrollviewer: [WASM] Make the SCP the "element which scrolls" (instead of the SV) ee21a4e
- transformtovisual: [iOS] Fix TransformToVisual inside ListView 162dee5
- [Android] LayoutSlot was including magrins and alignments 9743762
- [Android] Window's visible bounds are incorrect 39ea361
- Don't close ContentDialogs on showing MessageDialog cd4b9e4
- Don't use nullable reference types in generated code b167107
- scrollviewer: [WASM] Fix ScrollViewer incorrect offset after ChangeView() 7fddb8f
- Fix lazy theme dictionary caching 8a43603
- ios commandbar navigationcommand icon alignment 7497510
- resourcedictionary: Improve performance of ResourceDictionary with not-implemented types 94aad18
- scrollbar: Fix possible layout cycle when scrollbar is lower than the min size of the thumb ceba136
- transformtovisual: Fix TransformToVisual on scrolled ScrollViewer df3f88d
- viewport: Fix effective viewport adding scroll offsets twice d05ebc4
- xBind: [Wasm] Fix invalid internal ElementStub state ef37b28
- xBind: Fix xBind to other control without code-behind base class 76b2dba
- xLoad: Fix x:Load nesting and ElementStub strong reference 9371f72
- Assign ImageBrush on Android properly 118e4db
- Convert resources to target property type in generated code 873251d
- Reduce number of exception raised by RemoteControloClient cf45c19
- Reduced the severity of the inconsistency message while adding/removing elements in Visual Tree on WASM. b8dfc4b
- Respect Opacity when rendering gradient brushes b92cdd8
- Update text according to AcceptsReturn d318146
- xLoad: Adjust x:Load and x:Bind loading sequence a5217bf
- Overwrite runtime tests results file if...
3.10.11
This is a service update for the 3.10 release, with some changes and bug fixes for .NET 6 support and Visual Studio.
- fix: TextBlock text selection on WebAssembly #7088
- Use .NET 6 and Uno.Wasm.Bootstrap 3.0.0 #7120
- Added support for XAML Hot Reload for VS 2022 #7066
- Added support .NET 6 iOS/Android C# Hot Reload in VS 2022 #7066
- Fixed VS2022 performance issue #7066
- ProgressRing: The AnimatedVisualSource was recreated too often #7075
- Adjust VS 2022 .vsconfig for Preview 4 #7083
- fix(Android): Fix NRE when TextBlock.FontFamily is null #7132
3.10.7
Uno Platform 3.10: Day-0 support for .NET 6 RC1, WinUI InfoBadge, Windows 11 Fluent Styles
We continue to evolve Uno Platform in lockstep with the latest Microsoft developer platforms and tooling. Our 3.10 release supports .NET 6 RC1, latest developments in WinUI.
We are following developments in .NET 6 and Visual Studio 2022 until their general availability and look forward to bringing to you all the productivity, performance and stability benefits this latest wave of innovation from Microsoft is enabling for all of us.
In addition, we closed over 150 new features and issues requested by our community and clients, as well as added 30+ samples to our documentation.
As always, thanks to our community contributors:
- Many code generation fixes, UI Fixes (@Youssef1313)
- DeviceBluetooth, ToastNotification and related (@pkar70)
- Source generation fixes (@mterwoord)
- CompositionGradientBrush (Skia) (@VitezslavImrysek)
- Templates improvement (@brianlagunas)
- Templates improvements (@chingucoding)
- Skia Window size APIs (@DZetko)
- Android TextBox cursor color (@Hudney)
- Documentation (@Abhishek-Sharma-Msft, @MohammadHadi2031, @robloo, @crogeniks)
You can view the full blog post for this release here.
Features
- Upgrade to .NET 6 RC1 d110581
- Vector3 XAML conversion 2aa0be9
- background_sizing: Added support of BackgroundSizing on Wasm 8afd0c8
- background_sizing: Fixed compilation for Skia (background sizing not implemented yet) 219a42e
- BadgeNotification: Support for Tizen e5dc94f
- BadgeNotification: Support for WASM b7237fd
- New default Android, iOS and Mac Catalyst Uno Platform app icons 587ec89
- background_sizing: Added support for BackgroundSizing on Android 7a9b306
- background_sizing: Added support for the BackgroundSizing DependencyProperty + a sample for it. c3f8315
- fillrule: Correctly implement FillRule for iOS & macOS 1c90c0e
- fillrule: Correctly implement Path.FillRule on Android d0b9213
- fillrule: Fix FullRule on Wasm when GeometryGroup is used ed89a82
- geometrygroup: Add preliminary support for GeometryGroup on Skia. FillRule not fully supported yet. 64226f5
- measureview: Added the ability to .MeasureView() to measure eiter the content of the whole control for and HTML elements. f1607a9
- wasm_measureview: Added the ability to call .MeasureHtmlView() from application code. Useful to implement .MeasureOverride() in Wasm applications. 27e31b8
- DeviceBluetooth - common 53bd836
- background_sizing: Fixed compilation for iOS & MacOS (background sizing not implemented yet) dbbcecc
- datepicker: Added a new [UnoOnly] UseNativeMinMaxDates property on DatePicker & NativeDatePickerFlyout to allow the picker to be restricted to some date instead of just the year. Properties
MinYear
andMaxYear
are still used for that since they are already of typeDateTimeOffset
. 33ffc12 - dragdrop: Add ability to drop external content into wasm app 36c9eaa
- dragdrop: Fix support of external DragAndDrop to app on wasm b5942de
- runtime: Add ability to provide a CT for InvokeAsync c38c00c
- wasm: Add ability to manipulate a File using NativeStorageItem 0ffb4e0
- ActualTheme and ActualThemeChanged 5485f52
- Add optional XAML and Bindings Trimming 5d956f2
- Add ResourceDictionary retemplate 1b5acbd
- Add ResourceDictionaryWithCodeBehind template e2f48bc
- Add support for DataContext inheritance for non-UIElement bd1c297
- Add Thumb control default style 97b0cb7
- Added CompositionColorGradientStop implementation 14210e6
- Added CompositionColorGradientStopCollection implementation 61628e1
- Added CompositionEllipseGeometry implementation 10f2466
- Added CompositionGradientBrush implementation 38db8d6
- Added CompositionLinearGradientBrush implementation ab93de0
- Added CompositionLineGeometry implementation fe75691
- Added CompositionRadialGradientBrush implementation 031eae3
- Added CompositionRectangleGeometry implementation 8309bc7
- Added CompositionRoundedRectangleGeometry implementation 3c5bc14
- Added property change propagation notification for CompositionObjects 543b834
- BackdropMaterial fallback support dfee434
- BackgroundTaskDeferral for Android 2c4d7ee
- Contact and ContactAddress, warning when setting to longer than UWP 1d8a3c2
- fields for Android ToastNotification 639ea22
- Hide delete button when TextBox isn't large enough 003462f
- Implement SelectionStart, SelectionLength on Skia e10659e
- Implement sizing methods for ApplicationView 945a8c0
- Implement TextBox.Select, TextBox.SelectAll on all platforms b0f7646
- Initial support for CoreWindow.GetKeyState dc4517d
- Support for RenderTransform on Android LinearGradientBrush 5b54e1f
- Support for SettingsIdentifier, SuggestedStartLocation and SuggestedFileName on WASM 0048e4b
- Support PasswordBox on Skia 3f03c60
- listview: Implement drag-and-drop scrolling and visual states ab6a898
- pointers: Add inertia support in manipulation events 40f8d54
- shapes: Finished the implementation of GeometryGroup in Wasm/SVG d322267
- test: Add runtime tests automatic retry support 8919f17
- Windows.Devices.Radios common enums 91f8385
- pointers: Fully implement the inertia processor 288bdc8
- shapes: Implemented all geometries on Wasm 0d4e7cf
- wasm: Added ability to measure shapes on Wasm even when the control is not loaded. fe2c502
- ScheduledToastNotification 6427e28
- SystemTrigger Android implementation 90f591d
Performance Improvements
- [Android] Improve DisplayInformation performance 111affb
- Additional changes to mitigate PG-AOT dotnet/runtime issue #56309 218fd00, closes #56309 #7005
- Additional changes to mitigate PG-AOT dotnet/runtime issue #56309 ba58785, closes #56309 #7005
- Apply various workarounds for dotnet/runtime issue #56309 5cbbec2, closes #56309
- Improve DependencyProperty propagation ea6381e
- Improve nullability checking in DependencyProperty 5f50f1f
- Move Brush inheriting types to be lazy in ResourceDicionary 9954c4d
- Remove DateTimeOffset from TimeLine 96585ff
- Use invariant culture in XamlFilePathHelper fbf79fb
- Use lazy split regex creation in FastConvert 1e49c0f
- use switch(string) for bindablemetadata lookups f74fe23
- android: Adjust clipping computation performance 6b3f2eb
- android: Cache Stroke/Fill system style to reduce interop c410a4a
- android: Don't sort Canvas children below 2 986d922
- android: Move SimpleOrientationSensor off the UI thread 8f5666e
- android: Simplify
Activity
instances tracking fbe91b5 - android: Use HashTableEx in FontHelper 0fc8e52
Bug Fixes
- [Skia] Fix layout when RevealBrush is used 9f5e1a8
- Add support for VS 2022 in sync generator 4947bc1
- Add XAML source generator cancellation support 0e4964d
- Add XAML source generator cancellation support dd4b19e
- Apply coercion before value is set 7be2c37
- Apply icon color correctly inside native AppBarButton 4055a07
- Apply pointer visual states of pivot items 341205f
- ComboBox WinUI 2.6 border workaround 1991964
- Compare NaN correctly f509baf
- Disable light-dismissing MessageDialog 3c27bd3
- Exception was not reprotyed properly in async calls on WASM f93e40d
- Fallback to specific regional culture if neutral culture isn't found 1b35aed
- Fix faulty indentation d6ec852
- fixes TextBox cursor color for Android 29+ 375db65, closes #6240
- Flyout should return focus to previously focused 4d8af83
- Generate native ctor only when a ctor with required signature exists in base types 3691e08
- Handle scaling less than 100% on Wasm 7937de6
- ImageBrush RenderTransform does not throw a633fa9
- LinearGradient angle should be reflected in EndPoint 1ffe017
- Popup should receive focus if its child is focusable e6c03bc
- ToggleButton WinUI 2.6 border workaround d08d589
- Unchecked CheckBox should not have visible glyph a9d201e
- Border: Adjust UI Test snapshots differences after changes for pull request 6898 (Related to Uno.Themes - #616) 56cba36, closes #616
- commandbar: [iOS] Don't fetch the internal TitleView parent on invalidate measure 0a9a729
- CornerRadius: [Android]Remove twice drawn border, adjust Background that was underneath the border and properly calculate inner corner radius for common cases 4d0976a
- dragdrop: Preserve DragDropExtension JS entrypoint a5ba887
- Propagate focus properties from Flyout to Popup host 7cac6bc
- Remove net5.0 target option for skia/wasm dc13854
- getbbox: Fixed GetBBox bug 93a663c
- xamlreader: Load ThemeResources properly 06609d6
- Propagate focus properties from FlyoutPresenter caf0ffb
- Propagate focus property changes from PopupBase to Child 9f8b3af
- Set method of attached property must have 2 parameters 9b1c2c1
- Use SymbolThemeFontFamily instead of hard-coded Segoe MDL2 Assets 9dae693
- geometrygroup: Fixed a situation where the change handler could not be set on the GeometryCollection 794d4e6
- reg: Fix SelectedIndex update when ItemsSource is ObservableCollection 2747773
- Add missing implementation for text alignment on macOS 680ce6c
- Correctly check if the TextBox is PasswordBox befo 4e02fba
- Handle justified text for TextBlock on Android 8104c69
- Hide MS Edge reveal password to avoid duplicate reveal buttons a5e9160
- Use SkiaSharp.Views.WPF for .NET Core target c03af67
- animation: Fix DAUKF not cancelling its frames when stopped 1af267b
- animation: Fix transition animation not cancelled 144348c
- animations: Ensure VisualState and VisualTransition are materialized in the right resource context 77b769d
- ColorPicker: event subscriptions when reloaded e30e8c3
- ColorSpectrum: not rendering on skia/wasm f3216d8
- dragdrop: [iOS] [Android] Support drag over events when native view in...
3.9.1
This newest release brings support for .NET 6 (for iOS, Android, mac Catalyst and macOS), support for Visual Studio 2022 templates, WinAppSDK 0.8.1, Focus management updates, a XAML Trimming feature to reduce the size of WebAssembly apps by nearly 50% as well as many other improvements and bug fixes.
For more details about this release, take a look at our blog post.
We've closed many other issues and added other features, and as always thanks to our contributors!
- Detection of Uno.UI and Uno.WinUI mixing (@workgroupengineering)
- FileOpenPicker Settings identifier (@pkar70)
- VS2022 template .NET 6 fixes (@LeftTwixWand)
- Clipboard support for GTK and WPF (@trungnt2910)
- Enumeration of ApplicationDataContainer (@DZetko)
- Color.ToString() updates (@VitezslavImrysek)
- GetNetworkConnectivityLevel for WPF (@ahoefling)
- Linux installation documentation (@baskren)
- Animated Icon support (@MartinZikmund)
- WinUI ImageIcon (@MartinZikmund)
- Roslyn based source generation error reporting improvements (@jeromelaban)
- CachedFileManager support (@MartinZikmund)
- Shapes rendering performance improvements (@cdb)
Features
- AccessibilitySettings class (99726d5)
- Add dotnet new .NET 6 mobile templates (5b9d4b7)
- Add FlipView Implementation (aefdc9b)
- Add FlipView Sample Pages (530c8a5)
- Add Flipview styles (bfc5d20)
- Add net6 support (2427544)
- add vs2022 vsix support (334bf7c)
- Allow default button cursor configuration on WASM (de8504a)
- AnimatedIcon (607d3b9)
- AnimatedIconSource (ceb9887)
- ComboBox.OnDropDownOpened/Closed (13c8716)
- CreateIconElement tracks and updates created instances (27a35b5), closes #6168
- Enhance support for focus management (8a48451)
- ImageIconSource (452adda)
- Implement WUX IconSources, update MUX IconSources (bbc56d9)
- Implemented MarkupExtensionReturnTypeAttribute (eee861b)
- Implemented WebHostHiddenAttribute (262d3b5)
- Improve error reporting with Roslyn-hosted generators (8c3a0d7)
- Update InfoBar to latest from MUX (0f4fe67)
- Upgrade template to WinAppSDK 0.8 (257ac12)
- ConnectionProfile: [WPF] Adds support for ConnectionProfile.GetNetworkConnectivityLevel() (1eab4e6)
- ConnectionProfile: [WPF] Review Feedback - Adjusted name to Windows specific; Fixed code style; Added nullable code file to new files (74cb66e)
- geometry_bounds: Added
.Bounds
support for someGeometry
implementations. (ee6ed7f) - Initial implementation of FileOpenPicker for Skia.Gtk (4cd398a)
- Initial implementation of FolderPicker for Gtk (d35733f)
- separate implementations (48ce37e)
- Support for CachedFileManager (1673873)
- Update TabView to latest MUX (eb3c105)
- WinUI ImageIcon (547020f)
Bug Fixes
- elevatedview: shadow not appearing on uwp (94cafcd)
- Map Key.KP_Enter to VirtualKey.Enter (b6207be)
- selector: Fix support for ObservableCollection.Move (3fcdff3)
- templates: Ensure resource files are not tranformed (ffa5a31)
- Remove dependency on System.Json package (46a2856)
- android: Clamp android animation scale values to accepted values (bb00bfe)
- BindableDrawerLayout: unable to add removed pane back (b354803)
- Droid: Keyboard not getting correct height (Android 11) (41d30a1)
- Layout: [Android] Properly round values when converting logical to physical pixels. Apply rounding offsets for Path rendering (0920cf3)
- netstdref: Fixed UI Runtime Tests project were not compiling for netstdref target. (a310ea3)
- rect_union: Fixed a calculation bug with
.Union
onRect
class. (2425c81) - SourceGenerators: Use custom initializer for Duration (c881abd)
- wasm_imagebrush: Fixed a bug when ImageBrush on shapes was dynamically changing on Wasm: the previous image were not removed from the SVG pattern. (8e64a36)
- Adjust for invalid splashscreen uri (8faa64e)
- Allow running multiple full window runtime tests in succession (26a2055)
- Auto fallback to vibration on Android haptics (4750cfc)
- Ensure missing WinUI styles are generated properly (d447e3d), closes #6366
- Fix sr-Cyrl resourcesloading (f8c3208)
- Remove redundant pdb copy for WebAssembly Compatibility (37febd1)
- samplesapp: Fixed a cross-threading exception on UWP (07bf66d)
- Adjust for missing symbols when running on macOS 10.14 (6989126)
- Resource Dictionary issue (239ca6a)
- binding: Don't try metadata lookups on internal and struct types (148ccc6)
- calendar: Fix setting Width and Height on Calendar does nothing (2be72c9)
- calendardatepicker: The type
CalendarDatePicker
were wrongly makred as not implemented. (ad89368) - grid: Support Grid attached properties on native views (4ae7c3e)
- reg: Fix double path separator for lottie assets (07ab523)
- Allow multiple default value providers (d39362b)
- Avoid LinkerSafe depre...
3.8.6
The new 3.8 release ports additional WinUI controls and layouts, such as the often-requested CalendarDatePicker
control, to all Uno-supported platforms getting us one huge step closer to realizing the #WinUIEverywhere vision.
In addition, the new release brings up to 2x performance improvements in some scenarios, realized from the new Grid
implementation as well as DependencyObject
and UI Elements creation improvements. We also introduced new AOT and WebAssembly features, built on top of recently released Microsoft work on .NET.
On the Linux front we are pleased to enable new scenarios so you can target embedded systems using the FrameBuffer as well.
In addition to new UI and Performance features and improvements, the team has closed many issues. Closing issues timely is crucial in further fueling large projects enabling customers like Kahua to port a massive line of business applications from desktop to Web. We are particularly proud of the fact that with every release we close more issues than have been opened in the previous period; it shows a healthy and quickly maturing open-source project. Our huge thanks go to all our contributors @xperiandri, @Crixerker, @mterwoord, @scolapicchioni, @trungnt2910, @johnthepro and @pkar70!
See all the detailed updates in our blog post.
Features
- Cursors loaded from Gtk display theme. Support for more cursors on Gtk 6ce492a
- calendar: Add support for Chrome eabe306
- calendar: Add support of selection (and navigating back to Decade/Year mode to Day mode) b6d1dc6
- calendar: Enable auto scrolling to today 1589851
- calendar: Enable phase loading 0badfcf
- calendar: Implement virtualisation 430fe39
- calendar: Improve scrolling experience 7d564b2
- calendar: Initial import of the CalendarView 392e356
- calendar: Make some items visible! 53cca3f
- calendar: Make the CalendarView header appear, allowing to change display mode 099bbf7
- calendardatepicker: just finished translating the WinUI C++ code for CalendarDatePicker f0c90b4
- calendardatepicker: Set default Min/Max date for CalendarDatePicker to +/- 100 years. 4e3180b
- CalendarView: Add Uno specific properties to make styling easier 4044058
- GTK: Launcher.QueryUriSupportAsync support for Gtk Linux ca677a8
- WPF: Launcher.QueryUriSupportAsync support for WPF 3049f16
- Add ControlsResourcesVersion property for WinUI 2.6 compatability 65fe529
- Add support for Linux FrameBuffer and libinput c3550b9
- Add template support for Linux FrameBuffer ba04fc8
- Add the BorderLayerRenderer on wasm 590350b
- App/Window activation and visibility on Android fb18f1f
- App/Window activation and visibility on GTK 7b711d2
- App/Window activation and visibility on iOS 5dbf801
- App/Window activation and visibility on WASM 8b7914f
- App/Window activation and visibility on WPF 2a7959c
- missing ActivationKind values bfd6cd4
- Support for WinUI's internal DXamlCore.GetLocalizedResourceString() 83dbbe4
- Upgrade cross-platform library template to uwp 18362 0839b79
- scrollviewer: Implement the SCP.ScrollOwner (avoids anoying logs on wasm, android and ios) ab3ccb6
- App/Window activation and visibility on macOS d32ba14
- Application.Exit on GTK and WPF 55bfe8a
- Update wasm templates to use .NET 5 64f6639
- Use preventDefault to prevent browser from processing Handled events 974f689
- ApplicationView: IsViewModeSupported, TryEnterViewModeAsync 23493ac
- grid: Replaced the logic by the WinUI's one. ea0b254
- layoutpanel: Implementation of LayoutPanel f2380ef
- scrollviewer: Add ability to configure scrollbar's auto-hide delay, and fully disable auto-hide a5ec556
- showlocalvisualtree: Improved the display of
.ShowLocalVisualTree()
by adding details about Grid/Canvas positioning. 96b8086 - uniformgridlayout: First working version of UniformGridLayout 7f0a361
- Support for iOS universal links 3a7253e
Performance Improvements
-
[Skia] Remove weak registrations in UIElement constructor e84146f
-
[Wasm] Don't deserialize unused TS interop output 52f5b5d
-
[Wasm] Improve
UIElement.Visibility
set toCollapsed
0be67af -
[Wasm] Improve SetBackgroundBrush performance 14d996e
-
[Wasm] Improve text set color 07c794b
-
[Wasm] Register on ScrollContentPresenter pointer events only when native d25f9cc
-
[Wasm] Restore conditional DO hard references b968add
-
Add various controls creation benchmarks 1de5dac
-
Build only one logger for static style methods f4651c9
-
Explicitly limit DependencyPropertyDetail array pool max length 34923c4
-
Generate
Brush.Opacity
andRelativeTransform
DPs 516fbb6 -
Improve DependencyPropertyDetails performance 640a543
-
Initialize
UIElement.KeyboardAcceleratorsProperty
lazily 61c4223 -
Make
Grid.RowDefinitions
andColumnDefinitions
lazy initialized feaad83 -
Make VisualState and VisualTransition lazy loaded 64a79fc
-
misc performance improvements on
DependencyObjectStore
9c01d26 -
Move all UIElement TextHelpers to UIElement c1a776b
-
Push active system theme to ResourceDictionary 2322829
-
Reduce foreach/linq usage in pointers management d5b622a
-
Remove unused WeakReference read-back on creation 6cfe4c8
-
Skip ClearPointersStateIfNeeded during ctor 7d74f48
-
Use cached DependencyProperty comparer 6ef9e81
-
grid: Added more cases to Grid benchmark 3ae96b1
-
VisualState: Create
VisualState.Setters
andStateTriggers
backing collections lazily 5c14003 -
Use for loops in DependencyObjectCollection 0f64934
-
grid: Added a new multidimension test to grid. 53b3618
-
fix!: Exclude Windows.UI.Xaml.UIElementExtensions from Xamarin platforms 3cbea4f
Bug Fixes
- reg: Add missing FocusVisualLayer fddc5b0
- Fix Xaml merge task not supproting conditional namespaces e76c7ec
- ApplicationLanguages: Prevent NullReferenceException for ManifestLanguages 60a913f
- calendar: Avoid flicker when changing DisplayMode 9179695
- calendar: Fix background not applied properly on all items ec1c39f
- calendar: Fix blackout foreground color 08229b9
- calendar: Fix decade and year view scrolling on wasm 819e28e
- calendar: Fix decade/year/month navigation bc51190
- calendar: Fix first date always top/left 4702c59
- calendar: Fix measurement issues 077f48e
- calendar: Fix possible blank year view when opening closing calendar picker multiple times 02a25e8
- calendar: Fix possible null ref in measure 70c5afa
- calendar: Fix possible null-ref d589e89
- calendar: Fix possibly failing assert ddb505a
- calendar: Fix scrolling issues on iOS (inc. allow ChangeView on SV when not yet arranged) f9f463d
- calendar: Fix stretching on iOS 7af5a44
- calendar: Fix the Month and Decade views on Android 5cf9732
- calendar: Fix today + selected visual state c473ae1
- calendar: Fix vertical stretching (most probably not on Android and iOS) 31ae25b
- calendar: Improve reliability of calendar by safely handling invalid cases 6bf96e5
- calendar: Make sure to always fill the viewport aa570e4
- calendarpicker: Make sure to clear the over visual state when closing and re-opening the picker a19d2c8
- calendarview: Fixed #6160 c0c1bc5
- calendarview: Removed a potential exception while recycling elements 7685dcb
- Use UNO_BOOTSTRAP_WEBAPP_BASE_PATH to support path-based deep-linking 890d5d5
- calendar: Fixed a potential crash when
SetToMin()
/SetToMax()
were used in multi-eras calendars 9549557 - calendar: Year and Decade views are not working on Android d4b1a81
- calendardatepicker: Fixed compilation on other platforms af2bf91
- calendardatepicker: Now closes the opened picker when the control is unloading 9121bd9
- calendarview: fixed potential NRE when unloaded before being fully initialized 34657f0
- TextBox: Update fluent textbox resources and style to match the latest WinUI source code [Reunion 0.5] and fix resources for dark theme ee22bc5
- XamlFileGenerator: Generate literal properties for ResourceDictionary subclasses f5b7e4b
- xamlloader: Fixed potential NRE error when loading problematic XAML content f53c955
- Fix ChangedView raised too early 32ecb8d
- Fix dependency generation not allowing to set only DPChangedCallbackName 89de363
- Fix merge issues a5392e6
- Possible null-ref in MenuBar d46acd2
- Restore ability to have empty control template 55b18a8
- Setting JumpListItem.Description null crashes on Android 4625009
- calendardatepicker: fixed date picking were not working. 7e170e2
- calendardatepicker: Fixed default value for .Date : should be null, not DateTimeOffset.MinValue. 93ecfca
- calendarview: Fixed default min/max dates for CalendarView to use the same logic as other date-related controls. 4f4bcad
- enability: Fixed a recent regression in generated code about IsEnable property 7b8bacd
- pointer: IsLeftButtonPressed were wrongly true on the PointerRelease event e89a48b
- remotecontrol: Fixed annoying "Uri format" parsing error while launching apps with RemoteControl activated. cf88024
- samplesapp: Fixed NRE during application starting. 9943d91
- xBind: Add support
{x:Null}
syntax 1a6c2fd - BindingHelper may not provide properties when using WinUI fa1d1ad
- Fix compilation of the ref library ba767c5
- Fix possible scroll to out of bounds of the SV on iOS d1f0296
- Fixes DP generation 8ba9656
- skiagtk: Remove unused incorrect dependency in
Uno.UI.Runtime.Skia.Gtk
andFrameBuffer
aaf1809 - TextBox: Remove FocusRing on macOS 53ec039
- Incorrect SymbolIcon NotImplemented attr...
3.7.3
Uno Platform 3.7 expands our support for the newest WinUI, Project Reunion and Linux, all while continuing performance improvements for WebAssembly head.
This release includes:
- A new
SwipeControl
- GTK/Skia
TextBox
support - Performance improvements
WebAuthenticationBroker
for Android- Project Reunion 0.5.5 updates
and many contributors updates:
- @luke-welton fixed an issue in the WinUI template caused by invalid collection of the main window
- @microhobby contributed fixes to pointers support in the very new support for WSLg on Windows 10, and dotnet new templates fixes.
- @iosub contributed a fix to the native TimePicker control for Android not showing up properly
- @trungnt2910 contributed a fix for the FileSavePicker on WebAssembly for not providing proper file extensions
- @workgroupengineering contributed a fix for the Visual Studio extensions to enable automatic installation of core pre-requisites, which will help those of you completely new to the .NET ecosystem to set up a project.
- @pkar70 contributed implementations for common WinRT classes
To all our contributors: Thank you!
For more details, visit our blog post.
Features
- Support for iOS universal links 3a7253e
- Upgrade template to Reunion 0.5.5 c57f1bd
- animations: Add compositor thread on Android 077511b
- authentication_broker: Added support for Android. c1d057f
- FocusVisuals: SystemFocusVisual control 66293ac
- fontIconSource: Add basic support of FontIconSource 67ca382
- GTK: Support for some GTK TextBox visual properties, clear button 8f7ab5c
- swipecontrol: Add source commit id in headers bd2371c
- swipecontrol: Add support for simulated inertia. 2f1dbfa
- swipecontrol: Implement minimal gestures on Skia. e460f34
- swipecontrol: Implement SwipeItem cd6c42b
- swipecontrol: Implement SwipeTestHooks dcdd0fc
- swipecontrol: Implement the core of the SwipeControl 3bfc847
- swipecontrol: Import properties files 3f6c86e
- swipecontrol: Initial import 3908581
- swipecontrol: Set namespaces f8d6d43
- swipeControl: Implement SwipeItems bb90161
- Add feature flag to configure NotImplemented log level 9a07c7b
- WPF: Add support for visual properties on WPF TextBox, clear button 19e6680
- Add Uno.WinUI compatibility for net5-windows c04b549
- ChatMessage, fields for ChatMessageReader 7101c84
- ContactQueryOptions and ContactBatch (Android) 2879bd8
- Multiline TextBlock rendering 3c61d3c
- vsix: Automatic installing prerequisites. 150c161
- CookieManager b4d18a5, closes #5431
- Geofence for all platforms 074c6a2
- Implement HttpCookie class 3628d08
- Support for HttpCookie class 90b0cc8
Performance Improvements
- Add DependencyObject benchmarks deee2f3
- Add HashTableEx specialized for internal lookups b085b63
- add PropertyMetadataDictionary for faster GetMetadata 292522c
- Avoid using statment in hot binding path 2d02800
- Cache Marshal.SizeOf values 746ba84
- Cache self style key to avoid Type.ToString invocations 3b40a9c
- DependencyPropertyRegistry improvement ab54bd7
- Don't create attached stores on bindable propagation ef17b62
- don't manipulate the classes list on arranged e820c2b
- Don't rely on reflection for Marshal.PtrToStructure 20ea231
- FrameworkProperties for type performance 366d36e
- Improve name to DependencyProperty lookup 4bce59b
- Remove foreach statement in SubscribeToPropertyChanged 5f0aed5
- Remove HashtableEx version validation and concurrency validation 777f88a
- remove unused property lookup 8b88c0b
- Remove use of generic delegate in Brush.AssignAndObserveBrush bb71491
- TypeToProperties cache improvements 889dd55
- Update DependencyPropertyCacheEntry comparer 0f723f3
Bug Fixes
- Remote control for winui a1ff315
- dotnetTemplate: Fixed Window losing scope on Windows 0d5418d
- Fix NRE from x:Bind two-way through converter 101e5bf
- No scrollbars in ScrollViewer on skia and WASM c0474c6
- TheadPoolTimer.CreatePeriodicTimer raises events properly 33f50d4
- FileSavePicker: Group extensions by the mime types. All file extensions now show properly on WASM target 3229b4b
- FileSavePicker: Use generic MimeType / for WASM. FileSavePicker now does not show unwanted extensions. Fixes #5685 c31eafc, closes #5685
- GTK: pointer events in wrong locations using Wayland a7b59c0, closes #5706
- html_custom_event: Fixed a hard-coded exception when processing custom html events. Was visible mostly when more than one handler was registered on the same event. 3368739
- Pointers: Ignore GTK ungrab mode for window leave notification b4bb98c
- popup: [iOS/Droid] not responding 89ef822
- rc: Adjust server processors path dd39a82
- template: Remove blue background 9f2328f
- textblock: On Wasm, the
<TextBlock>
were not properly displaying the ellipsis on text overflow, because the CSS requires the overflow: hidden to be applied. 160a506 - textbox: Update on Foreground brush Color changed 96b7371
- Add Bindable attribute on VirtualizingPanelLayout 3ee4070
- Add ContentTemplate Binding to TextBlockButtonStyle 10162ca
- Adjust error message for FileOpenPicker 9a35c32
- Adjust generation for x:Bind events in x:Load context 0938736
- Adjust incorrect generation behavior during roslyn design-time build 8f6bf1f
- Adjust NotImplemented for file pickers f952c3e, closes #5766
- Adjust Roslyn generators support for UnoUISourceGeneratorDebuggerBreak e91067c
- Adjust Skia GTK target override for netcoreapp3.1 beff850
- Contact FullName fix 75b0b87
- Ensure Fluent style placeholders in ComboBox and TextBox update when theme changes d7837d6
- Invalid defines for WinUI 3 template a4c3d3f
- x:Bind typeof expression for nullable reference 9518f7d
- Border: Adjust max radius for inner border shape 81654c1
- listview: Fix ItemTemplateSelector not working with Fluent styles 5393841
- templates: Make UWP head mandatory 2fee3e1
- TimePicker: Make sure Android flyout opens 0701e4f
- Apply ContentTemplateSelector with Fluent styles 51b8edf
- AutoSuggestBox.QueryIcon does not work 1486945, closes #5545
- BorderLayerRenderer accumulates shape visuals 9417b2d
- Do not close JS stream reader if closed 4fa0db3
- Do not throw on read stream Flush 3b67dd4, closes #5751
- Fix native horizontal scrollbar remains visible on FF 2a4e199
- Fix spurious DataContext propagation in ContentControl 996d574
- FullAOT may fail for missing generated marshaller b387786
- Handle errors from Brush callbacks for disposed views 4ad04fe
- Improve internal debug info d2a0583
- Project Reunion logging and Suspending event adjustments f3e30d0
- Renew UWP samples app certificate 995a4af
- droid: issues when navigating back 0f8a4c9
- NativeFramePresenter: [iOS] Fix a bug where pre-populated frames would log errors when displayed. 17c04dc
- perf: Don't materialize unneeded theme dictionaries 4ad6e86
- textblock: [WASM]Removed a useless scrollbar appearing sometimes on TextBlock c888b36
- themeresource: Update VisualState.Setter value when theme changes b9440c7
- xbind: Support nested expression x:Bind events af614a0
- VS 16.9 uap build should not run roslyn source generators c7de633