Extending Themes.UseVsTheme to support additional controls #106
Replies: 3 comments 3 replies
-
I'd like the toolkit to provide full theming support to make it as easy for extension authors as possible. @reduckted what do you think? |
Beta Was this translation helpful? Give feedback.
-
I was successful in creating an inline themed style for PasswordBox, however I hit an issue where I don't know how to load it in from a xaml-based ResourceDictionary. I have posted my progress in a branch in case you have any hints. Here is where my loading is unsuccessful (I'm not sure if it has to do with the project type and "ProjectTypeGuids" that relate to WPF). |
Beta Was this translation helpful? Give feedback.
-
Does anyone have a method they use for design-time styling to preview how the Xaml would look with real Visual Studio themes? I came up with my own method but I've no idea if there's something better. I have some complex UI with lots of custom controls which My solution is a bit like a facade. At design-time the custom controls reference the colors/brushes from a special resource dictionary but at runtime the controls grab the real colors/brushes from what's available in VS. The design-time resource dictionary is a copy of what's in VS and I have one each for Dark, Light, and Blue themes that I can toggle between. |
Beta Was this translation helpful? Give feedback.
-
Themes.UseVsTheme
is a great toggle for making the UI of an extension visually match Visual Studio. What is the ideal approach for extending this to other controls like PasswordBox?Here are the thoughts I had:
Beta Was this translation helpful? Give feedback.
All reactions