默认是引用这些命名空间,没有Thems那一项
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
先添加引用PresentationFramework.Aero.dll 试试, 不行就按照二楼说的找你的对应的dll。
你引用了theme。在xaml文件里找到 xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"这个代码,看看你的assembly=后面是哪个程序集,就在引用里添加这个程序集的dll文件。例如我给出的,就要在引用里添加PresentationFramework.Aero.dll