XAML Source generator incorrectly seals the codebehind class #2830
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/bug
Something isn't working
Current behavior
The code behind class of a XAML file is incorrectly marked as sealed by the source generator. This prevents inheriting from controls that define XAML.
Expected behavior
Even though the default WinUI 2
UserControl
template does add a sealed specifier for a UserControl, removing it is possible; Uno should do the same.Environment
Nuget Package: 2.2
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
Addressing this issue requires to add a sample in the
https://github.com/unoplatform/uno/tree/master/src/SourceGenerators/XamlGenerationTests
project.The text was updated successfully, but these errors were encountered: