LostFocus Fires When ComboBox Receives Focus

I have a WPF application with a combobox on it.  The combobox has its IsEditable property set to True.  For some reason, when IsEditable is set to True, the LostFocus event fires when the combobox receives focus.  It also fires when the combo box loses focus.  Can anyone explain why?  I'm guessing that the combobox is actually a composite control and some underlying piece is losing focus when the user enters the text portion of the combobox.

Ultimately, I'd like to find a way to ignore this event when it first receives focus and only fire it when the combobox truly loses focus.  I'm not sure how to accomplish that at this point.  I'm hoping someone else has run into this issue and knows a good way around it.

By the way, I've attached some very simple XAML and some code-behind to create a test form.
XAML for Text Page:
<Page x:Class="Page1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Page1">
    <Grid>
        <UniformGrid Rows="10" Columns="3">
            <Label>Some Text</Label>
            <TextBox></TextBox>
            <TextBox></TextBox>
            <Label>Stuff</Label>
            <ComboBox Name="ComboBox1" IsEditable="True">
                <ComboBoxItem>Apples</ComboBoxItem>
                <ComboBoxItem>Oranges</ComboBoxItem>
                <ComboBoxItem>Grapes</ComboBoxItem>
            </ComboBox>
        </UniformGrid>
    </Grid>
</Page>

The Code-Behind:
Class Page1 
    Private Sub ComboBox1_LostFocus(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles ComboBox1.LostFocus
        MessageBox.Show("LostFocus Fired")
    End Sub
End Class

Open in new window

jmgroftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jmgroftAuthor Commented:
THank you.  Somehow I missed that one when I searched for solutions.  Thanks for finding it .
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.