找不到类型

时间:2013-05-09 14:29:19

标签: .net wpf visual-studio-2012

Visual Studio给我写了一些

  

找不到该类型。确认您没有错过装配   引用以及所有引用的程序集都是WPF中的错误   来自用户控件的项目。

当我按下构建信息消失时,一切正常。几秒钟后,这条消息又回来了,让我感到不安。

为什么VS写这个,我该如何解决?谢谢你的期待

   <UserControl x:Class="TandoCare.Desktop.Views.Login"
                 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:loc="clr-namespace:TandoCare.Desktop.Infrastructure.Localization"
                 mc:Ignorable="d">

    <Label 
                Width="120px" 
                Content="{loc:Translate UserName}"
                ContentStringFormat="{}{0}:"
                FontSize="16" 
                Grid.Row="1" 
                HorizontalAlignment="Right" 
                Target="{Binding ElementName=Username}" 
                />

0 个答案:

没有答案
相关问题