Is WindowsFormsHost fit for purpose (.net WPF hosting WinForms)?

前端 未结 6 1117
南旧
南旧 2021-01-02 06:51

A GUI driven application needs to host some prebuilt WinForms based components. These components provide high performance interactive views using a mixture of GDI+ and Direc

6条回答
  •  轮回少年
    2021-01-02 07:40

    One problem I've run into is that embedded Win Forms controls do not participate in any transform operations applied to their WPF container. This results in visual flashing effects and the embedded control appearing in an innappropriate location. I worked around this by binding the visibility of the Windows Forms Host to the animation state of its WPF container, so that the embedded control was hidden until the animation completed, like below.

    
    
         
    
    
    

提交回复
热议问题