在Windows Metro风格应用程序中有什么技术来调试数据绑定的问题?是否有可用的技术,如WPF和Silverlight应用程序,描述如下:
> How can I debug WPF bindings?
> Debugging Data Bindings in a WPF or Silverlight Application
> How can I turn binding errors into runtime exceptions?
编辑:我最初询问有关WinRT数据绑定调试技术,以便我可以解决Metro: Why is binding from XAML to a property defined in code-behind not working?所描述的问题.我最终发现a solution到这个问题,但试验工作的解决方案,我没有看到任何消息在Visual Studio 11输出窗口当我故意拼错属性名称,以便找不到.此外,ExpresstraceSources也不会出现在WinRT应用程序中.
另一个可能的解决方案
sealed partial class App : Application { public App() { this.InitializeComponent(); this.Suspending += OnSuspending; DebugSettings.BindingFailed += OnDebugSettingsOnBindingFailed; } private void OnDebugSettingsOnBindingFailed(object sender,BindingFailedEventArgs args) { new MessageDialog(args.Message).ShowAsync(); } ... }
原始来源:http://www.tozon.info/blog/post/2012/07/23/Debugging-WinRTXAML-bindings.aspx
原文地址:https://www.jb51.cc/windows/371421.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。