简体   繁体   English

WPF中的TaskDialog

[英]TaskDialog in WPF

I am trying to use the TaskDialog but encountering some problems: 我正在尝试使用TaskDialog,但遇到一些问题:

  1. I am getting the following error: 我收到以下错误:

Error 1 Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df, ProcessorArchitecture=X86, Type=win32'. 错误1找不到文件'Microsoft.Windows.Common-Controls,Version = 6.0.0.0,Culture = *,PublicKeyToken = 6595b64144ccf1df,ProcessorArchitecture = X86,Type = win32'。 WpfApplicationUnleashed WpfApplicationUnleashed

I have changed my manifest file to as per this link http://www.nbdtech.com/Blog/archive/2008/06/16/The-Application-Manifest-Needed-for-XP-and-Vista-Style-File.aspx 我已将清单文件更改为此链接http://www.nbdtech.com/Blog/archive/2008/06/16/The-Application-Manifest-Needed-for-XP-and-Vista-Style-File的.aspx

2) If I use this TaskDialog, I will see if the OS running is windows vista or higher and selectively use/ dont use TaskDIalog, however, is there any difference in TaskDIalog in Vista and Windows 7.I mean will have to filter windows vista and windows 7 also ? 2)如果使用此TaskDialog,我将查看运行的操作系统是否为Windows Vista或更高版本,并有选择地使用/不使用TaskDIalog,但是,在Vista和Windows 7中TaskDIalog有任何区别。我的意思是必须过滤Windows Vista和Windows 7还?

Are you running your app under the debugger? 您是否在调试器下运行应用程序? If so, try running it without the debugger ie press Ctrl+F5, or run it from Explorer. 如果是这样,请尝试在没有调试器的情况下运行它,即按Ctrl + F5,或从资源管理器中运行它。 If it works without the debugger, then the problem is because of the Visual Studio hosting process, which is a special process which the debugger uses to host your real application when debugging to speed various things up. 如果它在没有调试器的情况下工作,则问题是由于Visual Studio托管过程,这是调试器在调试以加速各种工作时用于托管实际应用程序的特殊过程。

To work around this, create a second copy of your manifest file called YourApp.vshost.exe.manifest in your project, and set it 'Copy to Output' to 'Copy if newer'. 要解决此问题,请在项目中创建清单文件的第二个副本,名为YourApp.vshost.exe.manifest ,并将其“复制到输出”设置为“如果更新则复制”。

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

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