【问题标题】:The type or namespace name could not be found (are you missing a using directive or an assembly reference找不到类型或命名空间名称(您是否缺少 using 指令或程序集引用
【发布时间】:2013-07-04 06:11:28
【问题描述】:

我在尝试包含到我的主项目时从 Internet 下载了一个项目它显示 Clr 命名空间错误请帮助我我已经在参考中添加了 dll 文件我应该怎么做?它在 SiriusMicrotech clr 命名空间中显示错误..

//My Coding//



<Page x:Class="RTBSPROJECT.Point_Of_Sale.Invoice"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

       xmlns:ig="http://schemas.infragistics.com/xaml" 
       xmlns:SiriusMicrotech="clr-namespace:SiriusMicrotech.core.UI"

      mc:Ignorable="d" 

    Title="Invoice"  >
    enter code here

   <Page.Resources>


 <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Point Of Sale\TouchStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
</page.Resources>

【问题讨论】:

    标签: wpf xaml


    【解决方案1】:

    您好,当您使用当前程序集以外的程序集时,您还需要指定程序集以及命名空间

    xmlns:SiriusMicrotech="clrnamespace:SiriusMicrotech.core.UI;assembly=AssemblyName....."
    

    我希望这会有所帮助。

    【讨论】:

    • AssemblyName 表示命名空间 clrnamespace:SiriusMicrotech.core.UI 所在的 Assmebly 的名称
    • 非常感谢@ethicallogics
    猜你喜欢
    • 2013-08-28
    • 1970-01-01
    • 2012-05-01
    • 2020-11-28
    • 2015-06-12
    • 2015-04-19
    • 2013-05-22
    • 2020-03-29
    • 2021-02-27
    相关资源
    最近更新 更多