Skip to content

Commit 0cb9ebf

Browse files
committed
Add Hyperlink as interactive element in AutoSuggestBox
Included System.Windows.Documents namespace to support Hyperlink functionality. Updated IsInteractiveElement method to recognize Hyperlink as an interactive element, alongside ButtonBase, TextBoxBase, and ComboBox.
1 parent 89f9625 commit 0cb9ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MaterialDesignThemes.Wpf/AutoSuggestBox.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using System.ComponentModel;
33
using System.Windows.Data;
4+
using System.Windows.Documents;
45
using System.Windows.Media;
56

67
namespace MaterialDesignThemes.Wpf;
@@ -244,7 +245,7 @@ private static bool IsInteractiveElement(DependencyObject? element)
244245
{
245246
while (element is not null)
246247
{
247-
if (element is ButtonBase or TextBoxBase or ComboBox)
248+
if (element is ButtonBase or TextBoxBase or ComboBox or Hyperlink)
248249
{
249250
return true;
250251
}

0 commit comments

Comments
 (0)