WPF Window Inheritance

Posted by Jonathan Sternberg on Stack Overflow See other posts from Stack Overflow or by Jonathan Sternberg
Published on 2010-06-09T18:53:25Z Indexed on 2010/06/09 19:12 UTC
Read the original article Hit count: 325

Filed under:
|
|

I have an application that will run in two modes, each with very similar displays. The application is supposed to allow easy modification of a user interface. One of the features is that it has to display the user interface. Both of these windows look the same, just one has more menus than the other.

I'd like to just create a base template (the user visual) and then inherit it for the editor. That way if one interface changes, both of them change. But this doesn't seem to be possible using WPF. I try to inherit and I get warnings about hiding members. I also don't see how I'm going to append new menus to the base template.

Is what I'm trying to do possible? Is there a better way that I'm supposed to be doing this? It seems like I'm fighting the way that they want me to make the application.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf