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.
我有一个自定义继承者,Behavior<TextBox>我想正确处理PreviewTextInput和Pasting过滤输入数据的事件,但是在启用插入模式时我无法处理输入数据。我检查插入模式是否正在使用Keyboard.IsKeyToggled(Key.Insert),但每个TextBox插入模式都有自己的状态。
Behavior<TextBox>
PreviewTextInput
Pasting
Keyboard.IsKeyToggled(Key.Insert)
TextBox
有任何想法吗?提前致谢。