我们能否调试的XAML在WPF?XAML、WPF

2023-09-02 21:50:44 作者:喜欢就要抢

我们调试的XAML在WPF可以吗?是否有任何外部工具或VS插件,它能够做到这一点?

Can we Debug Xaml in WPF? Is there any external tool or VS plugin which can do that?

推荐答案

我偶尔发现了这些技巧在这里有用的......

I've occassionally found these tricks here useful...

http://www.wpftutorial.net/DebugDataBinding.html

...尤其是第二个,你用一个假值转换器打破调试器。这是非常有用的看到什么对象被绑定等。

...particularly the second one where you use a dummy value converter to break in to the debugger. It's useful for seeing exactly what objects are being bound, etc.