I'm designing a Silverlight screen where I use an autocompletebox control.
One t开发者_如何学Che item 'foobar' has been selected in the autocompletebox, it's text reads 'foobar'. If a user wants to select the 'quux' value, he has to:
- delete the text from the control,
- then to type 'qu' so as to be able to select 'quux'.
Is there a way to performe the step #1 within the SelectionChanged event?
Hint: set the .text property don't work (unless it's followed by some refresh method I don't know of)
SelectionChanged is the wrong event to monitor.
Simply subscribe to the DropDownClosing event, there you'll be able to edit the .text property.
精彩评论