I am currently working on an application that uses a Table Layout Panel to display a row of data. Each row contains a certain number of textbox and checkbox.
The number of rows present is usually quite big, making the loading and navigation of the Table Layout Panel extremely slow.
After some research, I've found that the TLP is one of the slowest Winform UI controls and I'd like to implement a WPF Grid instead.
Mi pregunta es doble:
1) Does a WPF Grid perform better than a Table Layout Panel when it comes to a large number of rows ?
2) Is it possible to include WPF controls in an application that uses exclusively winform controls ? (The application uses .NET 3.5)
Thanks for your time and have a great day.
preguntado el 08 de enero de 11 a las 23:01
For performance, you'll have to do your own comparison. There are so many factors that could affect it that a well-written WinForms could be faster than a poorly-written WPF or vice versa. Just do a little prototyping and see if its an obvious win for you.
As far as using a little WPF in a mostly WinForms application, yes that is supported and can work well. Just put your WPF content in a WPF
UserControl and then add an
ElementHost to your form and host the WPF control inside that. Here's a lot more information:
Do you have background worker or thread for loading element into Table Layout Panel, if you have the problem with freezing?