Help and Support
 

powered byLive Search

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
Last Review:June 22, 2007
Revision:1.0
On This Page

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.

Back to the top

CAUSE

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

Back to the top

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.

Back to the top

MORE INFORMATION

Steps to reproduce the problem

1.On a Windows Vista-based computer, start Microsoft Visual Studio 2005.
2.On the File menu, click New Project.
3.In the New Project dialog box, click Visual C# under Project Types, and then click Windows Applications (WPF) under Visual Studio Installed Templates.
4.In the Name box, type WindowsApplication1, and then click OK.
5.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>
6.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();
        }
    }
}
7.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.

Back to the top


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

Back to the top

Keywords: 
kbtshoot kbprb KB937130

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.