A -desktop only project fails applying styles to a templated control #18157
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
project/styling 👔
Categorizes an issue or PR as relevant to element styling
triage/needs-information
Indicates an issue needs more information in order to work on it.
Current behavior
I've added a templated control to the project and set a default style in
Themes\Generic.xaml
, but the style is never set andOnApplyTemplate
is never called.I've added a minimum example following the steps in the docs.
TestTemplatedControl.zip
Then I've created a new project with 2 tfm windows and desktop, the same example works in windows and fails in desktop.
TestControl2.zip
Expected behavior
The style to be applied to the control.
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
Skia (GTK)
IDE
Visual Studio 2022
IDE version
17.12.0 Preview 1.0
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: