Using windows forms controls on a WPF page

前端 未结 1 1552
小蘑菇
小蘑菇 2021-01-28 19:06

Guys I need a datagridview on a WPF page.

I used this

public WindowsFormsHost HOST = new WindowsFormsHost();

Then instanttiated my dat

相关标签:
1条回答
  • 2021-01-28 19:34

    You should add 'HOST' to WPF Window rather than adding 'gridview'.

       this.Children.Add(HOST);
    
    0 讨论(0)
提交回复
热议问题