Bug: Make TargetType support abstract classes #26672
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/windows 🪟
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
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 from standalone WinUI. 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.
Originally opened here microsoft/microsoft-ui-xaml#10228.
I can reproduce the error 90% of the time when running the sample app.
Steps to Reproduce
Link to public reproduction project repository
videolan/libvlcsharp#370
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
Use a concrete class instead of an abstract class.
Relevant log output
The text was updated successfully, but these errors were encountered: