我重构了我当前的项目。目前我正在重组文件夹结构,但我现在收到此错误:
名称""在命名空间
中不存在
我得到了:
<UserControl x:Class="Z05.MES.WPF.WeighingSystem._01_LoadingPlace.DialogWindows.CarDetail.UCDeliveryDetail"
和
xmlns:converters="clr-namespace:Z05.MES.WPF.WeighingSystem._01_LoadingPlace.DialogWindows.CarDetail.Converters"
xmlns:conv2="clr-namespace:Z05.MES.WPF.WeighingSystem._01_LoadingPlace.ViewAnnouncedVehicles.Converters"
xmlns:helpers="clr-namespace:Z05.MES.WPF.WeighingSystem._01_LoadingPlace.DialogWindows.CarDetail.Helpers"
<UserControl.Resources>
<converters:IsCurrentLoadingSiteToInvertedValueConverter x:Key="IsCurrentToInverted" />
<converters:IsCurrentLoadingSiteToVisibilityConverter x:Key="IsCurrentToVisibility" />
<converters:IsControlWeighingToVisibility x:Key="IsControlWeighToVisibility" />
<converters:IsWeightResetToVisibility x:Key="IsWeightResetToVisibility" />
<converters:DeliveryIsLoadedToVisibility x:Key="DeliveryIsLoadedToVisibility" />
<conv2:EnumWTypeToString x:Key="WeighingTypeToStringConverter" />
<conv2:BooleanToString x:Key="BooleanToString" />
</UserControl.Resources>
例如此转换器及其标题:
namespace Z05.MES.WPF.WeighingSystem._01_LoadingPlace.DialogWindows.CarDetail.Converters
{
public class IsWeightResetToVisibility : IValueConverter
我认为命名空间路径是正确的。有什么提示吗?感谢。
答案 0 :(得分:1)
从评论中获取您发布的消息:
严重性代码描述项目项目排名文件列类别 源抑制状态行工具错误名称 &#34; IsWeightResetToVisibility&#34;在命名空间中不存在 &#34; CLR-名称空间:Z05.MES.WPF.WeighingSystem._01_LoadingPlace.D ialogWindows.CarDeta il.Converters&#34 ;. Z05. MES.WPF.WeighingSyst em 6 C:\ Users \ n02933 0 \ Desktop \ Z05 MES \ DcpBranch \ DCP-[M051602-399] -Z05-MES-Klient-V1.2分支\Ž05.MES.WPF.WeighingS ystem \ 01_LoadingPlacÊ\ DialogWindows \卡etail \ UCDeliveryDeta IL。 XAML 9 Build 18
您可以在此处看到命名空间中有多个invis字符:
invis字符位于
中DialogWindows
- 在D
和i
CarDetail
- 在a
和i
这是您的固定命名空间:
clr-namespace:Z05.MES.WPF.WeighingSystem._01_LoadingPlace.DialogWindows.CarDetail.Converters