Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Organising resources
Message
De
04/03/2009 14:51:34
 
 
À
04/03/2009 05:49:41
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01384902
Message ID:
01385599
Vues:
21
>Doh. I'm not sure what you were suggesting in the 3rd option (changes in the UserControl or in the consuming form?) but just the mention of routed events made me realise that my UserControl Clicked event was not routed! Once that was changed so that it bubbled I could handle it as an attached event anywhere up the tree....

You got it. I would use PreviewMouseDown on the ListBox.

>I've not familiar with the ItemContainerGenerator class. AFAIK I've never had occasion to use it (but of course with WPF until you know about it you don't know whether you've needed it or not :-})

It allows you to define a custom class for the contained items. That can come in handy at times.

>I now currently dithering over whether to go for specifying a Key or a DataType in the DataTemplate.......

I frequently go DataType (But then I use a lot of treeviews, so it's needed when you have different data types in the treeview.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform