Bug: Make TargetType support abstract classes #10228
Labels
bug
Something isn't working
closed-External
Described behavior is not an issue with Windows App SDK.
MAUI-request 🏝️
MAUI-request ???
Describe the bug
Hi,
While trying to add support for MAUI WinUI in LibVLCSharp (videolan/libvlcsharp#370), I've ran into what I believe is a regression. Indeed this behavior is supported in other XAML/UI flavors so I believe it should also work in WinUI MAUI.
Given this style:
And this base class:
This works fine in UWP, WinUI and Uno. But in WinUI for MAUI, I get the following error logs and stack trace:
stack:
This looks like the same issue as CommunityToolkit/Windows#273.
I can reproduce the error 90% of the time when running the sample app.
Steps to reproduce the bug
Expected behavior
Support abstract classes in Style TargetType in MAUI WinUI. Like in regular WinUI/UWP.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
The text was updated successfully, but these errors were encountered: