Skip to content

Commit

Permalink
Merge pull request #1508 from Dotnetifier/FlyoutCloseFix
Browse files Browse the repository at this point in the history
Flyout close fix
  • Loading branch information
flagbug committed Aug 23, 2014
2 parents 9a95244 + b1fdf09 commit fec8edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MahApps.Metro/Controls/MetroWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Flyout>() != null)
{
return;
Expand Down

0 comments on commit fec8edb

Please sign in to comment.