First Release Candidate of Avalonia UI v11 Now Available! #11593
Replies: 29 comments 91 replies
-
@grokys has put together this awesome guide to help you update. https://github.com/AvaloniaUI/Avalonia/wiki/Avalonia-11-Porting-Guide |
Beta Was this translation helpful? Give feedback.
-
Are there any breaking changes from preview8 to RC1? |
Beta Was this translation helpful? Give feedback.
-
Nice! And a good guide that teach people how to migrate from preview versions into v11 is necessary. Thanks all avalonia community. |
Beta Was this translation helpful? Give feedback.
-
I am getting some errors when running ControlCatalog.Desktop on Windows: It happens in many different places, including when I am rotating the adorner in AdornerLayer sample |
Beta Was this translation helpful? Give feedback.
-
I want to know what is difference between 11.0.0 Preview 8 and RC. Just between Preview 8 and RC, not between 0.10.x and RC. |
Beta Was this translation helpful? Give feedback.
-
Now that I was previously overriding this to close the window when minimized for a "minimize to system tray" feature. |
Beta Was this translation helpful? Give feedback.
-
Hey, congrats!. The project sample ControlCatalog was updated? When start playing with Avalonia this project was really helpful. |
Beta Was this translation helpful? Give feedback.
-
Very exciting ! Will there be an RC1 documentation update ? |
Beta Was this translation helpful? Give feedback.
-
Some issue in AvaloniaUI/Avalonia.Labs relatete to rc1 |
Beta Was this translation helpful? Give feedback.
-
So this currently breaks some of my project dependencies with a mix of very straight forward to address or it's just not clear what to do because the guide doesn't talk about it. I wanted to send prs to them, but I am hitting issues that I am not sure what to do since it's not clarified. For DialogHost.Avalonia, I am hitting issues with this api: https://github.com/AvaloniaUtils/DialogHost.Avalonia/blob/cdedc96b7312d1d340af8cd7549c8feee0e07b59/DialogHost.Avalonia/DialogOverlayPopupHost.axaml.cs#L93 It seems it was moved to internal which isn't talked about in the guide so what would be the equivalent for this? I also get a problem with MoveAndResize for similar reasons here: https://github.com/AvaloniaUtils/DialogHost.Avalonia/blob/cdedc96b7312d1d340af8cd7549c8feee0e07b59/DialogHost.Avalonia/Positioners/AlignmentDialogPopupPositioner.cs#L50 This one I am not sure what's the equivalent, it complains about IBinding, if I change it to Binding, now it doesn't seem to like the Initiate implementation: https://github.com/AvaloniaUtils/DialogHost.Avalonia/blob/cdedc96b7312d1d340af8cd7549c8feee0e07b59/DialogHost.Avalonia/Utilities/MultiDynamicResourceExtension.cs#L17 Finally, it breaks this because this interface is no longer implementable: https://github.com/AvaloniaUtils/DialogHost.Avalonia/blob/cdedc96b7312d1d340af8cd7549c8feee0e07b59/DialogHost.Avalonia/Positioners/DialogPopupPositionerHost.cs#L4 I am also hitting issues with Markdown.Avalonia's demo projects and this one I am not sure why because if I try to remove the include there, it breaks at runtime: |
Beta Was this translation helpful? Give feedback.
-
Anyone else having an issue with ItemRepeater after the update? System.MethodAccessException: 'Attempt by method 'Avalonia.Controls.RepeaterLayoutContext.GetOrCreateElementAtCore(Int32, Avalonia.Layout.ElementRealizationOptions)' to access method 'Avalonia.EnumExtensions.HasAllFlags<Avalonia.Layout.ElementRealizationOptions>(Avalonia.Layout.ElementRealizationOptions, Avalonia.Layout.ElementRealizationOptions)' failed.' |
Beta Was this translation helpful? Give feedback.
-
Updated from
|
Beta Was this translation helpful? Give feedback.
-
Congratulations! |
Beta Was this translation helpful? Give feedback.
-
I need to know if the user is using touch or mouse, so far I've done it like this:
but now InputManager is internal, is there other way to check it? |
Beta Was this translation helpful? Give feedback.
-
Did something changed in I have a timer deisgned like so on my private DispatcherTimer Timer { get; set; }
private TimeSpan _timerValue = TimeSpan.Zero;
public string TimerValue
{
get => _timerValue.ToString("g", CultureInfo.InvariantCulture);
set
{
var timer = TimeSpan.Parse(value, CultureInfo.InvariantCulture);
this.RaiseAndSetIfChanged(ref _timerValue, timer);
}
}
public ProgressViewModel() => InitializeTimer();
private void InitializeTimer() => Timer = new DispatcherTimer(TimeSpan.FromSeconds(1), default, TimerTick);
private void TimerTick(object sender, EventArgs args)
{
var timer = (DispatcherTimer)sender;
TimerValue = _timerValue.Add(timer.Interval).ToString();
}
public void StartTimer()
{
InitializeTimer();
TimerValue = TimeSpan.Zero.ToString();
Timer.Start();
}
public void StopTimer() => Timer?.Stop(); And I get it's text value like so on a <TextBlock Text="{Binding TimerValue}"/> When I click the On a But since Note, that described behavior was introduced since |
Beta Was this translation helpful? Give feedback.
-
Wow, congrats on the RC version guys! Good work! One breaking change in my app, my CompositeTransform cannot heritate from Transform anymore :( One remark, I belived that BackgroundSizing would be in RC so I can get rid of my custom Border and Presenter, is it still planed for v11? |
Beta Was this translation helpful? Give feedback.
-
Where is BorderDashArray? |
Beta Was this translation helpful? Give feedback.
-
is development for mobile (android) with vscode ready? how about debugging? thanks. |
Beta Was this translation helpful? Give feedback.
-
Love to see the new updates, looking great so far. I have one question about the Currently I have an menu generator implementation that sets child = new() {
Header = menu.Name ?? func.Name,
Icon = new Projektanker.Icons.Avalonia.Icon() { Value = menu.Icon },
InputGesture = shortcut!,
Height = (menu.Name ?? func.Name).StartsWith("_") ? 30 : double.NaN,
Classes = MenuItemClasses,
Command = command
}; Obviously this is no longer possible due to |
Beta Was this translation helpful? Give feedback.
-
heya! So I've got a Avalonia control which internally renders the control as a Bitmap and then sends the bitmap data to a 3rd party library. I'm having difficultly migrating it from preview8 to the RC. Could I get some 👀 on it please? Thanks! Repo: https://github.com/navhaxs/AvaloniaNDI/tree/dev dev branch.
(For context, NDI is a video-over-network protocol. I am generating bitmaps from an Avalonia app and sending it over NDI, which then goes to other video mixing apps like OBS Studio etc!) |
Beta Was this translation helpful? Give feedback.
-
Is there any plans on making the Visual Studio Extension create new projects using rc1.1? I created my project using the Cross Platform Application Template and upgraded everything using the Avalonia 11 Porting Guide which got me through most of my errors. However, I cannot get my web project to work. It just loads the splash screen but never goes to my UI. |
Beta Was this translation helpful? Give feedback.
-
Could the binding commands to methods be included in the porting guide. Afaik it doesn't throw errors/warnings so it can be frustrating to figure out if you don't know about it |
Beta Was this translation helpful? Give feedback.
-
Hi there, since the |
Beta Was this translation helpful? Give feedback.
-
not mentioned in documentation yet that custom gestures are not compatible anymore |
Beta Was this translation helpful? Give feedback.
-
not mentioned in documentation yet that |
Beta Was this translation helpful? Give feedback.
-
Hello, the link https://github.com/AvaloniaUI/Avalonia/wiki/Avalonia-11-Porting-Guide is not available anymore. I'm planning to port existing "Avalonia 10" code to "Avalonia 11" and the porting guide would be very welcomed (the code size is pretty big and a lot of errors popped-up by just bumping the nuget package version). Thank you, |
Beta Was this translation helpful? Give feedback.
-
Migrating from v11 Preview4 to RC1 worked great for me thanks to the well made porting guide. Thank you so much for your efforts Avalonia Team! I only have one problem. The image scaling seems to have changed In v11 Preview 4 I could still simply pass an IImage and the source image was scaled down cleanly and smoothly. In RC1 it looks much less clean and hard. What am I missing to get the old behaviour? I'm creating the Image control in XAML like this:
|
Beta Was this translation helpful? Give feedback.
-
btw when is the next RC coming out? |
Beta Was this translation helpful? Give feedback.
-
Hello Avalonia UI Community,
We're excited to announce that the first Release Candidate (RC) of Avalonia UI v11 is now available for you to try out!
This RC marks a significant milestone for us as it stabilises the API. It's been a journey of intense work, learning, and collaboration. And now, we can confidently say that we're closer than ever to the final release of v11
Now is the perfect time for you and your teams to test drive v11. As we progress, the only changes we're looking at are bug fixes. We believe this makes the RC a safe and exciting option to explore, especially if you're considering the upcoming production releases.
With a keen focus on maintainability, Avalonia UI v11 carries the most substantial changes in our API to date, setting the project up for a thriving future. We've poured considerable thought, time, and resources to ensure these changes pave the way for a more robust and reliable Avalonia UI. While this release represents our most substantial set of breaking changes, we expect future major releases will see significantly fewer breaking API changes.
As part of these breaking API changes, some previously public classes are now marked as 'Internal'. This change has been done to safeguard the integrity of applications by allowing us to modify implementations without introducing future breaking changes. While we've taken every measure to ensure a smooth transition, we acknowledge that you might encounter scenarios where a critical class is no longer visible. If you encounter such instances, we strongly encourage you to contact us. We're open to a dialogue about changing certain classes back to public visibility based on your valuable feedback.
We encourage everyone to try out the RC, provide your feedback, and help us make Avalonia UI v11 the best. We sincerely thank all our users, contributors, and the entire Avalonia community for your ongoing support.
Head over to Nuget to get started. Let's build the future of cross-platform .NET UI technology together!
Happy coding!
Beta Was this translation helpful? Give feedback.
All reactions