Equivalent to Style.Resources? #4840
Answered
by
michael-hawker
sam-wheat
asked this question in
Questions & Help
-
I am porting a WPF app where I have styles like this:
Is there an equivalent in WinUI 3? |
Beta Was this translation helpful? Give feedback.
Answered by
michael-hawker
Feb 14, 2023
Replies: 1 comment
-
@sam-wheat not out of the box. @rudyhuyn made an extension that can kind of replicate the behavior here with some caveats: https://github.com/rudyhuyn/XamlPlus/tree/master/XamlPlus/StyleExtension The resource lookup and style system between WPF and UWP/WinUI work a bit differently. We've thought about adding this type of helper to the toolkit as I believe we needed it for our Settings Control. If so, we'll have it in our 8.0 release. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
michael-hawker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@sam-wheat not out of the box. @rudyhuyn made an extension that can kind of replicate the behavior here with some caveats: https://github.com/rudyhuyn/XamlPlus/tree/master/XamlPlus/StyleExtension
The resource lookup and style system between WPF and UWP/WinUI work a bit differently.
We've thought about adding this type of helper to the toolkit as I believe we needed it for our Settings Control. If so, we'll have it in our 8.0 release.