The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'

场景:Visual Studio写WPF项目时,想要生成XML文件,默认的WPF项目没有引入System.XML这个dll。在【解决方案资源管理器——引用】右键添加了System.XML引用后,运行项目得到这个报错。

The type name ‘IComponentConnector‘ could not be found in the namespace ‘System.Windows.Markup‘

原因:导入System.XML后,其中有部分内容又依赖于System.Xaml这个dll。

解决方法:所以继续添加System.Xaml的引用到项目中即可。

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'

原文地址:https://www.cnblogs.com/guxin/p/8620683.html

时间: 2024-08-01 19:03:24

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'的相关文章

The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

应该说是 .net4 的bug,没有所谓的 System.Web.Extensions.dll 库文件,需要将项目的 Target Framework修改为 3.5版本,才能加载System.Web.Extensions.dll库文件. 我在使用 System.Web.Script.Serialization.JavaScriptSerializer 类解析嵌套的json时)用到. The type or namespace name 'Script' does not exist in the

The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)

The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?) solution: right click on reference system.web.mvc, toggle "Copy local" to "true". The type or namespace name 'H

The type or namespace name 'Description' does not exist in the namespace 'System.Web.Http'

Visual Studio 2012 SPA Template /Help/index.cshtml file was throwing your error. @using System.Web.Http @using System.Web.Http.Description <=== CS0234: The type or namespace name 'Description' does not exist in the namespace 'System.Web.Http' (are yo

WPF中自定义MarkupExtension

原文:WPF中自定义MarkupExtension 在介绍这一篇文章之前,我们首先来回顾一下WPF中的一些基础的概念,首先当然是XAML了,XAML全称是Extensible Application Markup Language (可扩展应用程序标记语言),是专门用于WPF技术中的UI设计语言,通过使用XAML语言,我们能够快速设计软件界面,同时能够通过绑定这种机制能够很好地实现界面和实现逻辑之间的解耦,这个就是MVVM模式的核心了,那么今天我们介绍的MarkupExtension和XAML之

Type Converters ,Markup Extensions,IValueConverter的区别

Type Converters和Markup Extensions是 XAML 类型系统和 XAML 编写器用来生成对象图组件的两种技术. 尽管类型转换器和标记扩展共享一些特征,但它们在 XAML 节点流中以不同的方式表示. 在本文档集中,Type Converters.Markup Extension和类似的构造有时统称为值转换器. 值转换器 在 XAML 中,值转换器能用于各种方案. 以下列表显示了 XAML 中不同类型的值转换器: 类型转换器 标记扩展 值序列化程序 为 XAML 文本语法

为 Windows Phone 8.1 app 解决“The type does not support direct content.”的问题

我在 VS 14 CTP 中新建了一个空的 app store 项目名叫 PlayWithXaml ,项目的 MainPage.xaml 文件改为了以下内容: <Page x:Class="PlayWithXaml.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

WPF自定义控件 依赖属性绑定

控件cs文件 using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Markup; using System.Windows.Media; namespace Controls { [TemplatePart(Name = "PART_DropDown"

zw版【转发&#183;台湾nvp系列Delphi例程】HALCON HImage与Bitmap格式转换

zw版[转发·台湾nvp系列Delphi例程]HALCON HImage与Bitmap格式转换 (Delphi Prism)namespace HImage_Bitmap_Prism;interfaceuses System.Drawing, System.Collections, System.Collections.Generic, System.Windows.Forms, System.ComponentModel, System.Drawing, System.Drawing.Imag

WPF控件自绘——基础,Control类的定义

用于记录自己的学习WPF控件,大神请飘过... [WPF控件类继承关系图] 所有可以自定义模版的控件都是从Control继承,所以我们来看看Contorl类里面到底有些什么.为以后的控件自定义模版做好准备.废话少说先来看看WPF中Control类的定义 1 namespace System.Windows.Controls 2 { 3 public class Control : FrameworkElement 4 { 5 public static readonly DependencyPr