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.
我有一个 WPF 应用程序,并且有一个用于搜索的文本框。
有没有办法可以标记这个TextBox,所以它的文本不会被 Windows 或浏览器自动完成功能存储,这些功能会显示所有过去条目的下拉列表TextBox?
TextBox
您可以尝试使用此代码
TextBox textBox = new TextBox(); textBox.Undo();//Undoes the last edit operation textBox.ClearUndo();//Clears information about the most recent operation from the undo buffer