Skip to content

Commit

Permalink
Merge pull request #1081 from orrindeng/develop
Browse files Browse the repository at this point in the history
Fix InvalidOperationException thrown when switching focus from editable ComboBox to Hyperlink
  • Loading branch information
batzen authored Nov 30, 2022
2 parents 9f43a0e + cb32b36 commit 9c88de4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Fluent.Ribbon/Extensions/ItemContainerGeneratorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media;
using Fluent.Internal;

/// <summary>
/// Extension-Methods for <see cref="ItemContainerGenerator" />.
Expand Down Expand Up @@ -82,7 +83,7 @@ public static class ItemContainerGeneratorExtensions
return item;
}

var visualParent = VisualTreeHelper.GetParent(container);
var visualParent = UIHelper.GetVisualParent(container);
if (visualParent is not null)
{
item = @this.ItemFromContainer(visualParent);
Expand Down

0 comments on commit 9c88de4

Please sign in to comment.