Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要处理搜索窗格的文本框为空的事件。
SearchPaneSuggestionsRequested输入退格键时不会引发事件,直到文本框为空。
SearchPaneSuggestionsRequested
我怎样才能做到这一点?
尝试使用TextBox.TextChanged并始终检查TextBox.Text == string.Empty(). 希望有帮助。
TextBox.TextChanged
TextBox.Text == string.Empty()