Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window Inheritance
Message
De
08/09/2011 09:23:57
 
 
À
08/09/2011 08:12:27
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01522992
Message ID:
01522999
Vues:
76
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform