Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:48:23+00:00 2026-06-13T07:48:23+00:00

I have a WPF combobox…which is non-editable. When I tab into this combobox…I have

  • 0

I have a WPF combobox…which is non-editable. When I tab into this combobox…I have a style setter (<Setter Property="IsDropDownOpen" Value="True"/>) to open the combobox. But when I tab again..the focus move to next item in the opened combobox….and it cycles over there. I am not able to tab out to next control.

What is wrong here?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:48:24+00:00Added an answer on June 13, 2026 at 7:48 am

    Try :

    <Style TargetType="{x:Type ComboBoxItem}">
        <Setter Property="IsTabStop" Value="False"/>
    </Style>
    

    Or

    Work with KeyboardNavigation :

    WPF tab order with custom controls?

    Not recommend, but works…

          <Grid>
                <ComboBox Grid.Row="1" Margin="0,0,0,0" Name="comboBox1" HorizontalAlignment="Left" Width="120" Height="20"  IsEditable="False" KeyDown="comboBox1_KeyDown"  GotKeyboardFocus="comboBox1_GotKeyboardFocus" >
                    <ComboBox.Style>
                        <Style TargetType="{x:Type ComboBox}">
                        <Style.Triggers>
                            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                                <Setter Property="IsDropDownOpen" Value="True" />
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                    </ComboBox.Style>
                    <ComboBoxItem>Male</ComboBoxItem>
                    <ComboBoxItem>Female</ComboBoxItem>
                    <ComboBoxItem>Unknown</ComboBoxItem>
                </ComboBox>
    
            </Grid>
    
        private void comboBox1_KeyDown(object sender, KeyEventArgs e)
        {
            ComboBox cb = sender as ComboBox;
            if (e.Key == Key.Tab && cb.IsDropDownOpen)
            {
                ComboBoxItem item = FocusManager.GetFocusedElement(Window.GetWindow(this)) as ComboBoxItem;
                cb.SelectedItem = item;
                cb.IsDropDownOpen = false;
                e.Handled = true;
            }
        }
    
       private void comboBox1_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
            {
                ComboBox cb = sender as ComboBox;
                cb.IsDropDownOpen = true;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF ComboBox which has its IsEditable property bound to a view
I have a WPF ComboBox named cbFileSize. I try to get is selected value
I have an editable WPF ComboBox with TextSearchEnabled. I need to force the user's
In WPF ComboBox does not have SelectedText property. Is there a way to achieve
I have a WPF app with a ComboBox where I want to style the
I have a wpf app with a combobox like this <ComboBox name=cmbBx1> <ComboBoxItem Name=Jan>January</ComboBoxItem>
I have a WPF containing a dynamically created DataGridComboBoxColumn this has a comboBox that
I have a WPF form that contains a DataGrid. This DataGrid is editable. One
I am working on WPF application. I have a window which has Combobox and
I'm using this filtered WPF ComboBox control from Diederik Krols. I have found that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.