Posted 22 days ago by Philippe Mazouer - Limula SA
Version: 25.2.3
Avatar

Good morning,

Sorry to bother you like this, but I was wondering if there is a plan to support the new release of Avalonia (currently in RC) in the coming weeks/months?

I wanted to test the RC1, and realized I couldn't because I'm using Actipro in most of our project... and the ModernTheme seems to be loading "Avalonia.Controls.IScrollable" which is no longer available (or moved?) in v12.

I'm just eager to test the new feature :)

Thank you again for the wonderful work!

Best

[Modified 22 days ago]

Comments (6)

Answer - Posted 22 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Yes, absolutely!  We have in fact been working with the Avalonia team during their preview build phase and now RC phase to resolve some issues that have been encountered, and have been giving them feedback.  If you want to write us directly at our support ticket system, we'd be happy to have you help test out a preview build of our software that is compatible.


Actipro Software Support

Posted 21 days ago by Philippe Mazouer - Limula SA
Avatar

Thank you so much for the answer!
If time permits, I'll gladly help testing our preview build.

Posted 7 days ago by Jeremy M Sampson
Avatar

I would like to try the out the preview build if possible.

Posted 6 days ago by kucint.bp
Avatar

After upgrade to avalonia 12, my application crashes with following exception:

System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'Avalonia.Controls.Primitives.IScrollable' from assembly 'Avalonia.Controls, Version=12.0.0.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'.
Source=ActiproSoftware.Avalonia.Shared
StackTrace:
at ActiproSoftware.UI.Avalonia.Themes.ModernTheme.nqp(IServiceProvider , ModernTheme )
at ActiproSoftware.UI.Avalonia.Themes.ModernTheme.nqp(IServiceProvider , ModernTheme )
at ActiproSoftware.UI.Avalonia.Themes.ModernTheme.tqX(IServiceProvider , ModernTheme )
at ActiproSoftware.UI.Avalonia.Themes.ModernTheme..ctor(IServiceProvider serviceProvider)
at BrainVision.Rta.Ava.App.!XamlIlPopulate(IServiceProvider , App ) in C:\src\RTA-FE.tk\src\Rta\src\Ava.RtaApp\App.axaml:line 18
at BrainVision.Rta.Ava.App.!XamlIlPopulateTrampoline(App )
at BrainVision.Rta.Ava.App.Initialize() in C:\src\RTA-FE.tk\src\Rta\src\Ava.RtaApp\App.axaml.cs:line 36
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at BrainVision.Rta.Ava.Program.Main(String[] args) in C:\src\RTA-FE.tk\src\Rta\src\Ava.RtaApp\Program.cs:line 9

Debugger shows the line responible for the crash:

  <Application.Styles>
    <actipro:ModernTheme                          <- this causes the crash
    Includes="All"
    AreNativeControlThemesEnabled="True">
      <actipro:ModernTheme.Definition>
        <generation:ThemeDefinition
        ButtonAppearanceKind="Soft"/>
      </actipro:ModernTheme.Definition>
    </actipro:ModernTheme>
Posted 6 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

This particular exception is happening because Avalonia v12 added new members to the IScrollable interface and that means any controls that implement that interface based on Avalonia v11 no longer satisfy the interface contract.  This is the most obvious issue users will see, but is just one of many breaking changes in Avalonia v12 that will make it incompatible with many libraries that originally targeted Avalonia v11.

We have been working on full compatibility with Avalonia v12 since the first preview and have posted our own public preview of our v26.1 controls based on Avalonia 12 today.  Please use this preview package if you want to target Avalonia v12 and let us know if you encounter any issues with our controls.

Updating Actipro Avalonia Controls to Avalonia v12

Our prerelease v26.1.0-rc.1 NuGet packages are compatible with Avalonia v12.

We also have updated our "develop" branch in our public Actipro/Avalona-Controls GitHub repo with samples and documentation for v26.1 (including breaking change notes) and Avalonia v12 compatibility.  The "develop" branch may get additional updates as we make adjustments prior to a final release.

For customers with active subscriptions, since this is prerelease, our web site does not issue v26.1 license keys just yet.  You can use the steps in the license popup to add code to temporarily hide the license popup until the final v26.1 release.

If you encounter any issues with v12 when using our v26.1.0-rc.1 build, please post them in new threads or tickets instead of in this thread.  Thank you!

[Modified 6 days ago]


Actipro Software Support

Posted 6 days ago by kucint.bp
Avatar

thanks for info!
tomasz

Add Comment

Please log in to a validated account to post comments.