【问题标题】:Wpf Adorner Class not found [duplicate]未找到 Wpf Adorner 类 [重复]
【发布时间】:2019-12-22 17:06:25
【问题描述】:

我只是想创建一个自定义Adorner...

  using System;
  using System.Windows.Documents; 
  using System.Windows.Media;
  using System.Windows;

  public class BlockAdorner : Adorner
  {
    public BlockAdorner(UIElement adornedElement) :
      base(adornedElement)
  {

即使这样也失败了,因为“Adorner 是一个命名空间,但用作类型”

我的项目引用了PresentationFramework (4.0.0.0)

当我点击显示定义时,我的 VS 也将 AdornerLayerAdornerDecorator 识别为类并跳转到 PresentationFramework。我还可以在那个 dll 中看到 Adorner 的元信息。我错过了什么?

谢谢

【问题讨论】:

  • 您是否尝试过对其进行完全限定:System.Windows.Documents.Adorner - 您的应用程序中有名为“Adorner”的命名空间吗?

标签: c# wpf


【解决方案1】:

您是否尝试过完全限定它:

System.Windows.Documents.Adorner

您的应用程序中是否有一个名为“Adorner”的命名空间?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-31
    • 1970-01-01
    • 1970-01-01
    • 2011-03-23
    • 2013-04-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多