PasswordBox中没有SelectionStart属性 [英] SelectionStart property is not ther for PasswordBox
本文介绍了PasswordBox中没有SelectionStart属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在WPF中的basswordbox中获取光标的当前位置?
How can I get the current position of the cursor in a basswordbox in WPF?
推荐答案
添加对System.windows.form的引用
然后
检索x和y坐标
代码是这样的
Cursor.Position.X;
Cursor.Position.Y;
Add Refernce of System.windows.form
then
To retrive x and y cordinate
code is like this
Cursor.Position.X;
Cursor.Position.Y;
这篇关于PasswordBox中没有SelectionStart属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文