WPF Binding Failure performance hit vs Exception

后端 未结 2 1703
攒了一身酷
攒了一身酷 2020-12-11 16:46

when we bind to heterogeneous collection of objects, not all objects have the same set of properties. in the output window we get a message like:

Syst

2条回答
  •  一生所求
    2020-12-11 17:27

    I haven't tested this myself but a blog post from the Visual Studio team says that binding errors indeed impact performance:

    WPF tries several different ways to resolve path errors, including searching for attached properties and this is quite expensive.

提交回复
热议问题