Does Binding[removed]path) error affect the performance?

后端 未结 1 848
你的背包
你的背包 2021-01-18 08:57

We have some derived control classes which have specific data. And these controls also set the data error info and binding to some specific property. For example, if the pro

相关标签:
1条回答
  • 2021-01-18 09:32

    The error in itself will not cause any additional performance issues, but the constant Binding checks will and do cause some very minor (practically unnoticeable) performance issues. This is one of the many reasons why WPF performs less well than many other languages. However, these checks will go on whether you have errors or not.

    The only time that having errors will actually slow down your program is when your are using the PresentationTraceSources to output information into the Output Window of Visual Studio or worse still, into an external trace file. However, even in these cases, it is unlikely that you will find a noticeable drop in performance, unless you have set the WPF Trace Settings to the most verbose setting of Verbose.

    0 讨论(0)
提交回复
热议问题