UXPasswordBox Cursorposition is always left

3 replies. Last post: August 1, 2012 6:38 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I am using the UXPassword for the first time and have following questions:

  1. the cursor jumps after each key press to the left position! When I input 12345 then the password property shows 54321! See attached sample to the reproduce.
  2. Why can I not set the focus by mouseclick (when the content is empty)? It works only with tab key!
  3. Is there a property to change the background color when the textbox has the focus?

Try this steps on attached sample

  • start wpf application and click in the frist (top) textbox
  • input some text, e.g. 12345. This works fine
  • click now in the secound textbox. The textbox does not get the focus!
  • press tab key and the textbox get the focus
  • input some text again, e.g. 12345. Watch the cursor position as you type

Simple Sourcecode:

<Window x:Class="UXPasswordSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Intersoft="http://intersoft.clientui.com/schemas"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <StackPanel>
            <Intersoft:FieldLabel Header="TextBox">
                <StackPanel Orientation="Horizontal">
                    <TextBox x:Name="TextBox" />
                    <TextBlock Text="{Binding ElementName=TextBox,Path=Text,UpdateSourceTrigger=PropertyChanged}" Width="100" Margin="8 0"/>
                </StackPanel>
            </Intersoft:FieldLabel>
            <Intersoft:FieldLabel Header="UXPasswordBox">
                <StackPanel Orientation="Horizontal">
                    <Intersoft:UXPasswordBox x:Name="UXPasswordBox" />
                    <TextBlock Text="{Binding ElementName=UXPasswordBox,Path=Password,UpdateSourceTrigger=PropertyChanged}" Width="100" Margin="8 0"/>
                </StackPanel>
            </Intersoft:FieldLabel>
        </StackPanel>
    </Grid>
</Window>
All times are GMT -5. The time now is 3:30 PM.
Previous Next