简体   繁体   English

由于PropertyGrid,导致速度慢的都市地铁对话框打开的可能原因

[英]Possible causes for slow mahapps metro dialog opening due to PropertyGrid

I'm investigating why opening a dialog in a mahapps application is much slower than the other dialogs in the same application, but I'm having trouble making progress, or even knowing where to look. 我正在调查为什么在mahapps应用程序中打开对话框比在同一应用程序中打开其他对话框要慢得多,但是我却无法取得进展,甚至不知道在哪里查看。

It's a dialog that contains a collection of options, when I run a profiler on the code all it gives me is that the majority of the work is happening inside the PresentationFramework dll, and a lot of the time is taken up by a PropertyGrid. 它是一个包含选项集合的对话框,当我在代码上运行探查器时,它所提供的就是大部分工作都在PresentationFramework dll内部进行,并且PropertyGrid占用了很多时间。

Sorry that this is a bit vague, I'm mostly just looking for direction on what sort of thing I should investigate when trying to debug something like this. 抱歉,这有点含糊,我主要是在寻找尝试调试此类内容时应调查的事情的方向。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

Tools -> Options -> Debugging -> Output Window. 工具->选项->调试->输出窗口。 If you change all debugging levels to verbose, you'll see in Output window a detailed report on each issue or binding error you have when the dialog starts. 如果将所有调试级别更改为详细,则在“输出”窗口中将看到对话框启动时遇到的每个问题或绑定错误的详细报告。

I also recommend VSColorOutput extension - it will add colors to messages in output and will help you spotting errors. 我还建议使用VSColorOutput扩展-它将为输出中的消息添加颜色,并帮助您发现错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM