Hi,
we are currently upgrading from version 19.1.687 to 21.1.3 and I have noticed that resizing the application is considerbly slower. I used the profiler to dig a little deeper and found out that the problem only occurs with visible WindowsFormHost instances.
100,00 % Arrange • 4.903 ms • System.Windows.UIElement.Arrange(Rect)
100,00 % ArrangeCore • 4.903 ms • System.Windows.FrameworkElement.ArrangeCore(Rect)
99,31 % ArrangeOverride • 4.870 ms • System.Windows.Forms.Integration.WindowsFormsHost.ArrangeOverride(Size)
80,30 % RunTranslator • 3.937 ms • System.Windows.Forms.Integration.PropertyMap.RunTranslator(PropertyTranslator, Object, String, Object)
80,30 % BackgroundPropertyTranslator • 3.937 ms • System.Windows.Forms.Integration.WindowsFormsHostPropertyMap.BackgroundPropertyTranslator(Object, String, Object)
79,93 % GetBitmapForTransparentWindowsFormsHost • 3.919 ms • System.Windows.Forms.Integration.HostUtils.GetBitmapForTransparentWindowsFormsHost(WindowsFormsHost)
56,91 % GetBitmapForFrameworkElement • 2.791 ms • System.Windows.Forms.Integration.HostUtils.GetBitmapForFrameworkElement(FrameworkElement)
56,91 % GetRenderTargetBitmapForVisual • 2.791 ms • System.Windows.Forms.Integration.HostUtils.GetRenderTargetBitmapForVisual(Int32, Int32, Visual)
53,84 % Render • 2.640 ms • System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual)
53,84 % Render • 2.640 ms • System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual, Matrix, Rect)
53,84 % Render • 2.640 ms • System.Windows.Media.Renderer.Render(IntPtr, Channel, Visual, Int32, Int32, Double, Double, Matrix, Rect)
3,34 % Render • 164 ms • System.Windows.Media.Visual.Render(RenderContext, UInt32)
2,16 % Commit • 106 ms • System.Windows.Media.Composition.DUCE+Channel.Commit
1,22 % ReleaseOnChannel • 60 ms • System.Windows.Media.Visual.ReleaseOnChannel(Channel)
0,33 % Precompute • 16 ms • System.Windows.Media.Visual.Precompute
2,91 % RenderTargetBitmap..ctor • 143 ms • System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32, Int32, Double, Double, PixelFormat)
0,16 % PixelsPerInch • 8 ms • System.Windows.Forms.Integration.HostUtils.PixelsPerInch(Orientation)
23,02 % GetBitmapFromRenderTargetBitmap • 1.129 ms • System.Windows.Forms.Integration.HostUtils.GetBitmapFromRenderTargetBitmap(Control, RenderTargetBitmap, Point)
0,37 % SetBackgroundImage • 18 ms • System.Windows.Forms.Integration.HostUtils.SetBackgroundImage(WinFormsAdapter, Control, Bitmap)
18,85 % set_Size • 924 ms • System.Windows.Forms.Control.set_Size(Size)
0,16 % ScaleChild • 8 ms • System.Windows.Forms.Integration.WindowsFormsHost.ScaleChild
0,18 % SetLayoutOffset • 9 ms • System.Windows.FrameworkElement.SetLayoutOffset(Vector, Size)
0,18 % GetDpi • 9 ms • System.Windows.Media.Visual.GetDpi
0,16 % ArrangeOverride • 8 ms • ActiproSoftware.Windows.Controls.Docking.AdvancedTabControl.ArrangeOverride(Size)
0,00 % 10 functions hidden • 0 ms total
0,16 % OnRender • 8 ms • System.Windows.Controls.TextBlock.OnRender(DrawingContext)
Do you have any idea how we can fix that?
Best regards, Tobias Lingemann.