Skip to content
Browse files

[WPF] Force canvas child add layout updates

  • Loading branch information...
1 parent 3244d30 commit deb48101745a0adc8f6b798f72bc940dbba3ca5f @ermau ermau committed Apr 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Xwt.WPF/Xwt.WPFBackend/CanvasBackend.cs
View
2 Xwt.WPF/Xwt.WPFBackend/CanvasBackend.cs
@@ -97,6 +97,8 @@ public void SetChildBounds (IWidgetBackend widget, Rectangle bounds)
SWC.Canvas.SetLeft (element, bounds.Left * wratio);
element.Height = (bounds.Height > 0) ? bounds.Height * hratio : 0;
element.Width = (bounds.Width > 0) ? bounds.Width * wratio : 0;
+
+ ((FrameworkElement) widget.NativeWidget).UpdateLayout();
}
public void RemoveChild (IWidgetBackend widget)

0 comments on commit deb4810

Please sign in to comment.
Something went wrong with that request. Please try again.