> > >
Rapid Access Key Selector Behavior for ComboBox and ListBox
Express yourself! Share your work with other members of the Expression Community.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.

Rapid Access Key Selector Behavior for ComboBox and ListBox

Average Rating:  (4)
Description
Discussions (1)

  • GetPopup()
    2 Posts | Last Post February 16, 2011
    • In 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.
    • Thanks 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. ;)

Details

Rate it: