Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Organising resources
Message
From
05/03/2009 06:25:43
 
 
To
04/03/2009 14:51:34
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01384902
Message ID:
01385743
Views:
16
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform