Open
Description
Describe the bug
You will have unexpected crash in WinUI 3 If you have a style with attached property.
Steps to reproduce the bug
- Create a template (buttons in my case) using a few attached properties.
- Use the template in the second assembly (in the button where we call this crash).
- Create a style in the second assembly, where we assign any attached property (if we assign all attached properties, the bug is not reproduced.). It is enough to create the style. You do not have to use it.
If we click the button - we have crash.
Same in my native language ->
- Создаем шаблон (кнопки в моем случае) с использованием нескольких присоединенных свойств.
- Используем шаблон во второй сборке (в кнопке по которой упадем).
- Создаем стиль во второй сборке, где присваиваем любое присоединенное свойство (если присвоить все присоединенные свойства - баг не воспроизводится.). Сам стиль можно не использовать. Достаточно его создать.
По нажатию на кнопку - падаем.
Expected behavior
No crash.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
May 2021 Update (19043)
Additional context
See attached project
@gabbybilka Looks like you have critical crash in WinUI. I added a simple project. Could somebody take a look?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment