Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window Inheritance
Message
From
08/09/2011 09:23:57
 
 
To
08/09/2011 08:12:27
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01522992
Message ID:
01522999
Views:
75
This message has been marked as the solution to the initial question of the thread.
>In WPF, can I create a Window/Form and have other windows inherit from that master form? How?

You cannot create a derived window from a base type created using XAML. If the window is created purely via C# (or VB.NET) then it can be sub-classed.

>Can this also be done with the controls like buttons and grids?

Yes but again these must be created in code. If you do then the best plan is to define them in a separate assembly. You can then add relevant items from the assembly to the Toolbox.

That said, with WPF, you should never use base classes to impose any visual appearance on derived classes.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform