Skip to content

Commit

Permalink
fix #12 "Validation.ErrorTemplate don't move with the view in maximiz…
Browse files Browse the repository at this point in the history
…e window"
  • Loading branch information
zzczzc004 authored and m.fedotov committed Mar 6, 2017
1 parent d8afa3a commit 580f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WPFTabTip/AnimationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static FrameworkElement GetRootVisualForAnimation(DependencyObject eleme
if (rootWindow?.WindowState != WindowState.Maximized)
return rootWindow;
else
return rootWindow.Content as FrameworkElement;
return VisualTreeHelper.GetChild(rootWindow, 0) as FrameworkElement;
}

private static double GetYOffsetToMoveUIElementInToWorkArea(Rectangle uiElementRectangle, Rectangle workAreaRectangle)
Expand Down

0 comments on commit 580f170

Please sign in to comment.