Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To: Subclass User Control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01470880
Message ID:
01509537
Vues:
48
UserControl doesn't support templates, so I don't think it's suitable for what you are trying to do here.

Create a custom control using the wizard. The button goes in the template for your custom control that is created in Generic.xaml

Since it sounds like you want to create something similar to a UserControl, I would change the base class from Control to ContentControl.

HTH

>Hey Viv,
>
>Revisiting this topic...
>
>I get how to subclass the control. The question is how do you put a button on the base class?
>
>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform