简体   繁体   English

Mahapps减慢了WPF应用程序的速度

[英]Mahapps slows down WPF application

Since I added Mahapps to my WPF application it slowed down dramatically: it takes 5 times longer than before to start up and while editing the XAML code, Visual Studio often waits for 10 seconds or more while I'm typing. 由于我将Mahapps添加到我的WPF应用程序中,它的速度显着减慢:启动时间比以前长5倍,在编辑XAML代码时,Visual Studio在键入时经常等待10秒或更长时间。 Is this normal or are there tweaks to speed it up? 这是正常的还是有调整来加快速度?

I'm using C# 4.0 on Win7 64bit. 我在Win7 64bit上使用C#4.0。

Have same issue when I included the Icons.xaml file. 当我包含Icons.xaml文件时遇到同样的问题。 But I deleted all content from that file and just put only those Icons/content which I required/needed for the project. 但是我删除了该文件中的所有内容,只放了我需要/需要的那些图标/内容。 For now its working fine.. 现在它的工作正常..

If your having problems with the XAML in the designer perhaps you can try reloading it: 如果您在设计器中遇到XAML问题,也许可以尝试重新加载它:

Press Ctrl + Shift + Esc Ctrl + Shift + Esc
Navigate to the Processes tab. 导航到“进程”选项卡。
Kill XDesProc.exe 杀死XDesProc.exe

This will reset the Designer, if that don't work try rebuilding the solution. 这将重置Designer,如果不起作用,请尝试重建解决方案。
If you are using NuGet package to install you could try uninstalling and installing again. 如果您使用NuGet包进行安装,可以尝试重新卸载和安装。

You could also look at your performence tab. 您还可以查看您的性能标签。 You wil find it under Ctrl + Shift + Esc aswell. 你会在Ctrl + Shift + Esc下找到它。 <KBD>控制</ KBD> + <KBD>移</ KBD> + <KBD> ESC </ KBD>

Look at your memory and processor to see if its constantly peeking while you are running Visual Studio. 查看您的内存和处理器,看看它是否在您运行Visual Studio时不断窥视。

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

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