【发布时间】:2013-05-30 07:06:02
【问题描述】:
我有一个基类调用 PopupWindow,它继承自 UserControl。 PopupWindow 没有关联的 xaml 页面,它只是一个继承自 UserControl 的常规类
然后我有另一个继承自 PopupWindow 的 UserControl。现在这是一个适当的用户控件,其中有一个关联的 xaml 页面。
我已将根 xaml 标记更改为像这样的 PopupWindow
<local:PopupWindow
.....
</local:PopupWindow>
其中 local 是此 PopupWindow 中存在的命名空间。
但我不断收到一个错误,即 PopupWindow 在给定的命名空间中不存在。
我做错了什么?
谢谢
【问题讨论】:
标签: c# xaml inheritance user-controls