WPF "Skinning"
-
WPF Noob question: Can WPF applications can have their appearance change at runtime? I understand, through styles, that one can change the appearance of controls and UI elements, but I was envisoning something more along the lines of having two applications: one "editor" application and a "game" application, both running essentially the same code but having a totally different UI layout (the latter having fewer buttons, simpler controls, menu items, etc). The layout of the "game" UI could be designed by an artist, generally someone who doesn't have access to the underlying code. How do I go about doing something like that? I'd just need a starting point. Thanks!
-
WPF Noob question: Can WPF applications can have their appearance change at runtime? I understand, through styles, that one can change the appearance of controls and UI elements, but I was envisoning something more along the lines of having two applications: one "editor" application and a "game" application, both running essentially the same code but having a totally different UI layout (the latter having fewer buttons, simpler controls, menu items, etc). The layout of the "game" UI could be designed by an artist, generally someone who doesn't have access to the underlying code. How do I go about doing something like that? I'd just need a starting point. Thanks!
The first thing I'd suggest here would be that this is a perfect candidate for applying an MVVM pattern to an application. The second thing I'd suggest is that you might want to look into Prism[^] the Composite WPF/Silverlight P and P from Microsoft.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
The first thing I'd suggest here would be that this is a perfect candidate for applying an MVVM pattern to an application. The second thing I'd suggest is that you might want to look into Prism[^] the Composite WPF/Silverlight P and P from Microsoft.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
I'll check that out, Thanks!
-
I'll check that out, Thanks!
You're welcome.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.