Microsoft KB Archive/937130

= The floating in-place Tablet PC Input Panel icon does not appear when you set the focus to a password field by holding a pen near the field of a WPF application =

Article ID: 937130

Article Last Modified on 6/22/2007

-

APPLIES TO


 * Microsoft Windows XP Tablet PC Edition
 * Microsoft .NET Framework 3.0
 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate

-





SYMPTOMS
When you set the focus to a password field in an application by holding a pen near the field, the floating in-place Tablet PC Input Panel icon does not appear. This problem occurs if the application is created by using the Windows Presentation Foundation (WPF) subsystem feature of the Microsoft .NET Framework 3.0.



CAUSE
This problem occurs because WPF does not use the standard accessibility model for password fields.



WORKAROUND
To work around this problem, do any of the following:
 * Open the input panel by using the Input Panel tab instead of the Input Panel icon.
 * Use the ITextInputPanel API to programmatically open the input panel.



Steps to reproduce the problem
 On a Windows Vista-based computer, start Microsoft Visual Studio 2005. On the File menu, click New Project. In the New Project dialog box, click Visual C# under Project Types, and then click Windows Applications (WPF) under Visual Studio Installed Templates. In the Name box, type WindowsApplication1, and then click OK.  On the Window1.xaml tab, replace the following code:    <Grid> </Grid> </Window> With the following code: <Page xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; xmlns:sys=&quot;clr-namespace:System;assembly=mscorlib&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; > <StackPanel> <Label Width=&quot;250&quot;>Username:</Label> <TextBox Width=&quot;250&quot; /> <Label Width=&quot;250&quot;>Password:</Label> <PasswordBox Width=&quot;250&quot; /> </StackPanel> </Page> </li>  On the Windows.xaml.cs tab, remove the following code: using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace WindowsApplication1 {   ///     /// Interaction logic for Window1.xaml ///    public partial class Window1 : System.Windows.Window {       public Window1 {           InitializeComponent; }   } } </li> On the Debug menu, click Start Debugging.</li></ol>

Notice that when you hold a pen near a password field, the in-place Tablet PC Input Panel icon does not appear.

Keywords: kbtshoot kbprb KB937130

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.