我的XAML无法看到我的CustomClass

时间:2015-05-08 14:34:02

标签: wpf xaml

我的班级名为TileView

using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace myApp
{
    public class TileView : ViewBase

我的XAML看起来像这样

<UserControl x:Class="Camden_Automated_Help_Desk.ShortcutControl"
             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:local="clr-namespace:myApp"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <local:TileView x:Key="ImageDetailView">

出于某种原因,我收到错误提示&#34;命名空间clr-myApp&#34;

中没有TileView

我对此非常困惑,因为我的TileView类显然使用相同的命名空间。

0 个答案:

没有答案