문제

I'm designing a Silverlight screen where I use an autocompletebox control.

One the 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:

  1. delete the text from the control,
  2. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top