WPF PasswordBox Input Panel Icon Not Appearing: Better Workaround?

Posted by Anna Savarin on Stack Overflow See other posts from Stack Overflow or by Anna Savarin
Published on 2010-05-17T16:08:13Z Indexed on 2010/05/17 16:10 UTC
Read the original article Hit count: 320

Filed under:
|

Hello,

There is a known issue in WPF where the Input Panel icon does not appear when you set focus on a PasswordBox control. I'm in need of a workaround for this, but the one suggested -- using the ITextInputPanel API -- does not quite cut it for me.

Fist of all, the API works with Windows Forms controls and alternatively accepts control handles. Since WPF controls are not handle based, and they are not Forms controls, this is not quite suitable. I tried hosting a Forms control on my WPF page and that worked on the Windows XP Tabled PC (albeit with some COM exceptions) but, since there is no PasswordBox in Forms, I had to stick with a regular textbox, which is not what I need. Alternatively, using the VisualTreeHelper to get a handle on the control did not work, either.

The API, according to http://msdn.microsoft.com/en-us/library/ms699559%28VS.85%29.aspx, is only compatible with Vista. I'm dealing with Windows XP tablets. I understand that the IPenInput API can be used as an alternative, but it is now deprecated.

Can someone please suggest something? I really need to fix this issue.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about passwordbox