.net 名称为;ClassicByOrderDecorator“;命名空间中不存在“0”;clr命名空间:Microsoft.Windows.Themes;组件=PresentationFramework.Aero“;

.net 名称为;ClassicByOrderDecorator“;命名空间中不存在“0”;clr命名空间:Microsoft.Windows.Themes;组件=PresentationFramework.Aero“;,.net,wpf,xaml,border,aero,.net,Wpf,Xaml,Border,Aero,我被指控修改别人的作品,但这个错误让我感到困惑 The name "ClassicBorderDecorator" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 我已经包含了PresentationFramework.Aero的引用集和xmlns标记集,我缺少什么 <Application xmlns="htt

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

The name "ClassicBorderDecorator" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
我已经包含了PresentationFramework.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">

我没有尝试过,但似乎
ClassicBorderDecorator
是在
PresentationFramework.Classic.dll
中定义的(不在
PresentationFramework.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">

我没有尝试过,但似乎
ClassicBorderDecorator
是在
PresentationFramework.Classic.dll
中定义的(不在
PresentationFramework.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">