This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
File version: 5.0.1084.20423 I'm using an AutoCompleteBox whose SuggestionsSource is a bunch of 3 letter codes. I've been asked to make it so that if you double-click it, it will clear the contents and show the full list. I tried attaching to PreviewMouseDoubleClick and MouseDoubleClick and setting the property or Text or SetCurrentValue(AutoCompleteBox.TextProperty to null, to no avail. The primary reason this came up is that double-click + bksp does not open the drop-down. A fix for that would probably suffice, but the clearing behavior would be great too.
|
|
|
Hello I've added a ShowAllSuggestions method to the AutoCompleteBox which you can use to implement these scenarios. You can attach an event handler to TextChanged and then call this method if the length of the Text value is 0. This will be available in the next nightly build. Jason Fauchelle |
|
|
Many thanks, that should work nicely. Unfortunately my license is expired. Time to hit up the boss :) |
|