Rapid Access Key Selector Behavior for ComboBox and ListBox
Average Rating:
(4)
(4)
Description
Discussions
(1)
|
|
-
-
Written January 29, 2011In the SL4 code (haven't looked at the SL3 code), your implementation of GetPopup() looks like it's trying to do a recursive search on the visual tree, but because the for loop doesn't break when it finds a popup, it only works because the popup happens to be on the far-right-hand path of the visual tree. If you really meant for it to search search, you need to return from the for loop as GetPopup returns a popup; if not, you can get the same behavior by just calling GetPopup on obj's last visual child. This behavior is great! Thanks for publishing.
-
Written February 16, 2011Thanks Nick. I'll take a look into that. I created this behavior more than 1 year ago and never looked at the code again because I never had any problem with it. I think it's time to refactor a little. ;)
-




