I've a simple window which includes 2 fields :
<TextBox Grid.Column="1" HorizontalAlignment="Left" Height="21" Margin="10,25,0,0" Grid.Row="1" Name="textbox_login" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="227" KeyDown="textbox_login_KeyDown"/>
<PasswordBox Grid.Column="1" HorizontalAlignment="Left" Height="22" Margin="10,25,0,0" Grid.Row="2" Name="passwordBox_mdp" VerticalAlignment="Top" Width="227" KeyDown="passwordBox_mdp_KeyDown"/>
When I press the tab key on my keyboard I can switch to the next field but once I've reached the last field if I press the key again I have an exception on "MyApplication.Run" :
System.InvalidOperationException : Targettype button does not correspond to Control Element
Stacktrace : System.Windows.Style.CheckTargetType(Object element)
This error happens on all my windows/UC even if there isn't any field (just textblocks)
I don't know at all how to solve this.
valider()? - 500 - Internal Server Error