Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.标题栏的SearchBox命名不能引用;2.设置其Text之后光标显示在最前端,无法用鼠标更改位置 #197

Open
HeShiwen opened this issue Nov 10, 2023 · 0 comments

Comments

@HeShiwen
Copy link

1.在XAML文件中使用pu:SearchBox x:Name="SchBoxOfArt",并不能在对应的.cs文件中引用此名称。
此定义在以下位置内部:
pu:WindowXCaption.HeaderTemplate


2.通过sender引用此SearchBox,使用searchBox.Text = (string)xxx;这种语句设置显示的文字之后,文字正常显示,并且候选列表弹出。
但是文字框的光标出现在文字之前,并且无法用鼠标更改其位置,只能用键盘的左右按键调整,导致在运行时修改此文字不是很顺畅。
另外,是否有方法在设置searchBox.Text时不弹出候选列表?

感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant