我的 WPF 应用程序在 Windows 7 上运行良好。在 XP 机器上安装会在启动时出现以下错误:
框架版本:v4.0.30319
说明:进程因未处理的异常而终止。
异常信息:System.Windows.Markup.XamlParseException
堆栈:在 System.Windows.Markup.XamlReader.RewrapException(System.Exception,System.Xaml.IXamlLineInfo,System.Uri)
在 System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader,System.Xaml.IXamlObjectWriterFactory,布尔,System.Object,System.Xaml.XamlObjectWriterSettings,System.Uri)
在 System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader,布尔,System.Object,System.Xaml.Permissions.XamlAccessLevel,System.Uri)
在 System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream,System.Windows.Markup.ParserContext,System.Object,布尔)
在 System.Windows.Application.LoadComponent(System.Object,System.Uri)
在 MyApplication.App.InitializeComponent()
在 MyApplication.App.Main()
我想我可能遇到了这个问题的答案中描述的问题:
Windows XP 上的 XamlParseException
因为我在一些地方使用 PresentationFramework.Aero。有没有办法解决这个问题,还是我必须删除 Aero?这很痛苦,因为我正在使用一些 ButtonChromes
TIA