开发者

How to get the canvas visible when the textbox gets focus?

开发者 https://www.devze.com 2023-02-18 07:17 出处:网络
I have added a Canvas to the Grid then added my custom keypad on the canvas. Now on TextBox.GotFoucs event I changed Canvas.Visibilty = Visiblity.Visible;

I have added a Canvas to the Grid then added my custom keypad on the canvas. Now on TextBox.GotFoucs event I changed Canvas.Visibilty = Visiblity.Visible;

But the issue is that when the TextBox gets focus it shows the default keypad in front and my Canvas behind it. I want the Canvas to be displayed on top of the default keypad and should work as a text entry control to the TextBox开发者_Python百科. How can I do this?


The display of the SIP is handled by the operating system and will always be on top of the visual tree of any application. If you want to provide a custom SIP, you will need to provide an alternative input control, because the display of the native SIP is tied to input controls (such as TextBox, PasswordBox, etc.). You may find this article about creating a Bulgarian keyboard useful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号