Skip to content
Permalink
Browse files

feature: Added SuspendLayout to RoutedViewHost WinForms control. (#2200)

  • Loading branch information...
trucksmart authored and glennawatson committed Oct 10, 2019
1 parent 1357b14 commit e3ef2a810047e4ecc205ff862f7de926f457f01b
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ReactiveUI.Winforms/RoutedViewHost.cs
@@ -51,6 +51,7 @@ public RoutedControlHost()
x =>
{
// clear all hosted controls (view or default content)
SuspendLayout();
Controls.Clear();

if (viewLastAdded != null)
@@ -66,6 +67,7 @@ public RoutedControlHost()
Controls.Add(DefaultContent);
}

ResumeLayout();
return;
}

@@ -75,6 +77,7 @@ public RoutedControlHost()

viewLastAdded = InitView((Control)view);
Controls.Add(viewLastAdded);
ResumeLayout();
}, RxApp.DefaultExceptionHandler.OnNext));
}

0 comments on commit e3ef2a8

Please sign in to comment.
You can’t perform that action at this time.