Skip to content

Commit

Permalink
We don't have an HWND on create
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Mar 8, 2014
1 parent 388915c commit ffb499a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PerMonitorDpiBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ static PerMonitorDpiBehavior()
public PerMonitorDpiBehavior(Window mainWindow)
{
AssociatedObject = mainWindow;
OnAttached();

mainWindow.Loaded += (o, e) => OnAttached();
mainWindow.Closing += (o, e) => OnDetaching();
}

Expand Down

0 comments on commit ffb499a

Please sign in to comment.