In Windows Forms, it was useful at times to have one window that inherited from another window. But in WPF, this is not allowed. Why is there no visual inheritance for WPF windows?
R – Why isn’t there visual inheritance in WPF
inheritancewpf
Related Question
- C++ – Difference between private, public, and protected inheritance
- Wpf – How to bind inverse boolean properties in WPF
- C# – How to get a TextBox to only accept numeric input in WPF
- Java Constructor Inheritance
- Java – Is List
a subclass of List ? Why are Java generics not implicitly polymorphic - C# – How to exit a WPF application programmatically
- Python – Why do Python classes inherit object
- C# – Why not inherit from List
Best Solution
In WPF, a large effort was made to separate visual from logical. Because of this, there is a LARGE amount of freedom to make the UI look however you want. All of the controls, including windows, are "lookless". You can provide your own look via templates and styles. A default visual style has been provided that makes everything look like you would expect, but you don't have to use it.