Possible issue with focusing

1 posts, 0 answers
  1. Alexus
    Alexus avatar
    3 posts
    Member since:
    Nov 2012

    Posted 29 Jan 2013 Link to this post

    There is an window with three combo boxes:
    <Window ... >

    and back code:
    public partial class MainWindow : Window
        public MainWindow()
            Loaded += MainWindow_Loaded;   
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
            //_combo.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); //(!)         

    1. show window
    2. type some text (without tabs)

    expected: some text appears in second combo box with name "_combo".
    actual: second combo box has focused appearance, but does not accept any input
    actual with line (!) uncommented: as expected.

    This is strange behavior because, for example, dateTimePicker would work as expected without uncommenting line (!)
Back to Top