I’m still working on my MDI replacement idea and was trying to extend the ideas to include the WPF tabcontrol as well. Most things ported easily enough but there is one problem that came up trying to create a base class for the UserControl class that inherited from the Interface I created.
If you try to create a new WPF UserControl that inherits from the base class I created – which inherits from both WPF’s UserControl and my interface, then I get a compiler error:
“Missing partial modifier on declaration of type ‘xxx’; another partial declaration of this type exists”.
After some searching on the net (ya that old Internet thingy) I found a post on social.msdn.microsoft.com forums where the guy had similar problems. One of the responses basically explains that WPF does not support multiple inheritance. Not exactly useful. This means you cannot create base classes for WPF Windows or controls.
Thanks for this Microsoft. WPF just scored another negative point with me and a reason to stay away from it even longer. As a platform to develop applications from WPF is still too immature to be taken seriously.
ChildWindowBaseWPF
0 Comments.