Events added to the Visual designer in Visual Studio don't automatically generate code-behind handlers #19518
-
I am evaluating Avalonia WASM in Visual Studio 2022 (I have C# house). When I add an event (e.g., a click to a button), I have to manually add the C# code-behind handler (which I am copying the Avalonia website). This seems like a bit of an unnecessary manual step. Q1: Is this perceived limitation correct? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Avalonia does not really have a designer (currently). It's just a visual previewer. You can use Resharper/Rider if you want a proper editing experience as both officially support Avalonia. |
Beta Was this translation helpful? Give feedback.
-
A significant Avalonia VS extension update/rewrite is expected to launch next month which should solve a lot of these slightly annoying issues. For now, you need to use Rider to have a good editing experience but even that has significant pains with the XAML Styler extension. |
Beta Was this translation helpful? Give feedback.
-
It works with a new Visual Studio extension, which was previously announced. |
Beta Was this translation helpful? Give feedback.
Avalonia does not really have a designer (currently). It's just a visual previewer. You can use Resharper/Rider if you want a proper editing experience as both officially support Avalonia.