名称空间中名称namehere不存在

时间:2016-01-17 21:46:19

标签: c# wpf namespaces

我有一些最近由于某种原因破坏的代码,我似乎无法看到问题。我只是试图在我的样式中使用一些转换器。

这是XAML ResourceDirtionary:

angular.module('app', [])
  .controller('Controller', function($scope) {


    $scope.effortTags = [{
      category: "5. XS",
      id: "94",
      value: "01:00:00"
    }, {
      category: "4. S",
      id: "96",
      value: "02:00:00"
    }, {
      category: "3. M",
      id: "94",
      value: "04:00:00"
    }, {
      category: "2. L",
      id: "94",
      value: "07:00:00"
    }, {
      category: "1. XL",
      id: "94",
      value: "16:00:00"
    }, {
      category: "0. XXL",
      id: "94",
      value: "38:00:00"
    }, {
      id: "105",
      value: "Estimate Required"
    }];
    $scope.tasks = {
      "entities": {
        "Agree_a_standard_team_approach_to_logging_and_document_it__1285": {
          "data": {
            "id": "3311",
            "name": "Agree a standard team approach to logging, and document it.",
            "UID": "Agree_a_standard_team_approach_to_logging_and_document_it__1285",
          },
          "selected_tags": {
            "importance": [{
              "id": "1",
              "value": "0. Must"
            }],
            "status": [{
              "id": "13",
              "value": "Open"
            }],
            "clientprojects": [{
              "id": "67",
              "value": "House"
            }, {
              "id": "697",
              "value": "All"
            }],
            "effort": [{
              "id": "105",
              "value": "Estimate Required"
            }],
            "sprint": [{
              "id": "107",
              "value": "CD"
            }],
            "type": [{
              "id": "159",
              "value": "Feature"
            }]
          }
        },
        "Apply_error_handling_solution_to_project": {
          "data": {
            "id": "2994",
            "name": "Apply solution to error handling on all project",
            "UID": "Apply_error_handling_solution_to_project",
          },
          "selected_tags": {
            "importance": [{
              "id": "2",
              "value": "1. Must"
            }],
            "status": [{
              "id": "13",
              "value": "Open"
            }],
            "clientprojects": [{
              "id": "67",
              "value": "House"
            }, {
              "id": "697",
              "value": "All"
            }],
            "effort": [{
              "id": "105",
              "value": "Estimate Required"
            }],
            "sprint": [{
              "id": "707",
              "value": "CD5"
            }],
            "type": [{
              "id": "159",
              "value": "Feature"
            }]
          }
        }
      }
    };

  });

在每个转换行上出错:

  

命名空间中不存在名称“StartPointConverter”   “CLR-名称空间:PhotoManagement.Converters”

这是转换,注意命名空间与上面的引用相同,我尝试了多次重建解决方案。

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:PhotoManagement"
                    xmlns:Converters="clr-namespace:PhotoManagement.Converters">
    <FontFamily x:Key="FontAwesome">/Fonts/#FontAwesome</FontFamily>
    <Visibility x:Key="AdminOnly">Collapsed</Visibility>

    <!--<General:CheckBoxConverter x:Key="CheckBoxConverter" /> -->
    <Converters:StartPointConverter x:Key="StartPointConverter" />
    <Converters:ArcSizeConverter x:Key="ArcSizeConverter" />
    <Converters:ArcEndPointConverter x:Key="ArcEndPointConverter" />
    <Converters:LargeArcConverter x:Key="LargeArcConverter" />
    <Converters:SizeTextOnParent x:Key="SizeTextOnParent" />
    <Converters:Difference x:Key="Difference" />

0 个答案:

没有答案