From b1fdf09d96f1d9e4519d9c3a85242d4ff07ee603 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 19 Aug 2014 15:19:35 +0200 Subject: [PATCH] Changed FrameworkElement to DependencyObject --- MahApps.Metro/Controls/MetroWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MahApps.Metro/Controls/MetroWindow.cs b/MahApps.Metro/Controls/MetroWindow.cs index c9fd6ba0c8..ef495f4b88 100644 --- a/MahApps.Metro/Controls/MetroWindow.cs +++ b/MahApps.Metro/Controls/MetroWindow.cs @@ -735,7 +735,7 @@ private void ThemeManagerOnIsThemeChanged(object sender, OnThemeChangedEventArgs private void FlyoutsPreviewMouseDown(object sender, MouseButtonEventArgs e) { - FrameworkElement element = (e.OriginalSource as FrameworkElement); + DependencyObject element = (e.OriginalSource as DependencyObject); if (element != null && element.TryFindParent() != null) { return;