I got a question about WPF performance this morning regarding how the number of elements (controls, panels, et al.) affects performance. Before I share more broadly, I'll mention that the WPF Performance team is working on plans for more detailed & prescriptive guidance; you should stay tuned here & MSDN for more info. In the mean time, here's the response I provided:
There is a cost for additional elements that you add; to name a few:
when input is received.
One of the key ways to improve performance of your app is to reduce the number of elements. You can do this in a variety of ways: