Skip to content

Commit

Permalink
Merge pull request #95 from FlorisBriolas/combo-WindowsFormsHost-issue
Browse files Browse the repository at this point in the history
* repair nullref combobox combined with focus on winforms control
  • Loading branch information
batzen committed Apr 11, 2015
2 parents e3c12c5 + b42c52e commit b49f36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fluent/Controls/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ protected override void OnDropDownOpened(EventArgs e)
Mouse.Capture(this, CaptureMode.SubTree);
if (SelectedItem != null) Keyboard.Focus(ItemContainerGenerator.ContainerFromItem(SelectedItem) as IInputElement);
focusedElement = Keyboard.FocusedElement;
focusedElement.LostKeyboardFocus += OnFocusedElementLostKeyboardFocus;
if (focusedElement!=null) focusedElement.LostKeyboardFocus += OnFocusedElementLostKeyboardFocus;

canSizeY = true;

Expand Down

0 comments on commit b49f36f

Please sign in to comment.