Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Organising resources
Message
De
05/03/2009 06:25:43
 
 
À
04/03/2009 14:51:34
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01384902
Message ID:
01385743
Vues:
15
>>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.

Hmm. To do that I'd have to create a Tunnelling routed event as well as a Bubbling one. MS say the two can be linked but I can't find a single example of how that is actually implemented :-{

>>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.
Yeah - I see now what it does......

>>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.)

I guess there's no single best choice - it will depend on individual circumstance.......

Best,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform