如何在ClassLibrary项目中实现System.Windows.Markup.MarkupExtension(How to implement System.Windows.Markup.Mar

编程入门 行业动态 更新时间:2024-10-28 13:21:32
如何在ClassLibrary项目中实现System.Windows.Markup.MarkupExtension(How to implement System.Windows.Markup.MarkupExtension in a ClassLibrary-project)

我想在C#-project中编写一个新的Converter-class,它继承自抽象类MarkupExtension,通常可以在库System.Windows.Markup中找到MarkupExtension。 在我的类库中,可以使用库或命名空间,但是找不到类MarkupExtension。 我需要哪些参考?

提前致谢!

I want to write a new Converter-class in a C#-project which inherits from the abstract class MarkupExtension Normally MarkupExtension can be found in the library System.Windows.Markup. In my classlibrary the library or namespace is avaible but the class MarkupExtension can't be found. Which references do i need?

Thanks in advance!

最满意答案

找到了! 需要引用System.Xaml。 :)

Found it! A reference to System.Xaml is needed. :)

更多推荐

本文发布于:2023-07-25 23:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267558.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   如何在   ClassLibrary   System   implement

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!