Posted 15 years ago
by Bill Boland
-
Software Engineer,
CME, Inc for Thomson Elite
Version: 9.1.0503
Platform: .NET 3.5
Environment: Windows 7 (32-bit)
We're using WPF Studio 9.1.503.0 and noticed when using a DateTimePicker with IsEditable="True" and a TabIndex assigned, the DateTimePicker is skipped and treated as if there was no TabIndex assign.
If the IsTabStop="True" is assigned to the DateTimePicker, it starts to go in the correct order and navigates to the DateTimePicker but tabbing out of the DateTimePicker does not go to the next TabIndex control but instead continues with elements that have no TabIndex assigned.
If IsEditable="False" then the expected tab navigation is observed.
[Modified at 02/09/2010 12:39 PM]
<StackPanel>
<TextBox Height="23" Name="textBox0" Width="120"/>
<TextBox Height="23" Name="textBox1" Width="120" TabIndex="1"/>
<TextBox Height="23" Name="textBox2" Width="120" TabIndex="2"/>
<TextBox Height="23" Name="textBox3" Width="120" TabIndex="3"/>
<shared:DateTimePicker Height="21.96" Name="dateTimePicker1"
IsEditable="True" Width="200" TabIndex="4"/>
<TextBox Height="23" Name="textBox4" Width="120" TabIndex="5"/>
<TextBox Height="23" Name="textBox5" Width="120"/>
</StackPanel>
<StackPanel>
<TextBox Height="23" Name="textBox0" Width="120"/>
<TextBox Height="23" Name="textBox1" Width="120" TabIndex="1"/>
<TextBox Height="23" Name="textBox2" Width="120" TabIndex="2"/>
<TextBox Height="23" Name="textBox3" Width="120" TabIndex="3"/>
<shared:DateTimePicker Height="21.96" Name="dateTimePicker1"
IsEditable="True" Width="200" TabIndex="4" IsTabStop="True"/>
<TextBox Height="23" Name="textBox4" Width="120" TabIndex="5"/>
<TextBox Height="23" Name="textBox5" Width="120"/>
</StackPanel>
[Modified at 02/09/2010 12:39 PM]