1

我被指控修复别人的工作,但这个错误让我感到困惑。

The name "ClassicBorderDecorator" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"

我已经包含了对 PresentaionFramework.Aero 的引用集和 xmlns 标记集,我缺少什么?

<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="Application"
    StartupUri="MainWindow.xaml">
4

1 回答 1

2

我没有尝试过,但它似乎是在(而不是)ClassicBorderDecorator中定义的。因此,您需要修复您的引用并更改您的命名空间定义:PresentationFramework.Classic.dllPresentationFramework.Aero.dll

 <Application
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"     
      x:Class="Application" StartupUri="MainWindow.xaml">
于 2013-09-26T10:28:12.260 回答