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.
This problem occurs because WPF does not use the standard accessibility model for password fields.
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:
<Window x:Class="WindowsApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowsApplication1" Height="300" Width="300"
>
<Grid>
</Grid>
</Window> With the following code:<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<StackPanel>
<Label Width="250">Username:</Label>
<TextBox Width="250" />
<Label Width="250">Password:</Label>
<PasswordBox Width="250" />
</StackPanel>
</Page>
- 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
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : System.Windows.Window
{
public Window1()
{
InitializeComponent();
}
}
} - On the Debug menu, click Start Debugging.
Notice that when you hold a pen near a password field, the in-place Tablet PC Input Panel icon does not appear.