¿No se pudo encontrar mi propio espacio de nombres?

I am trying to put a view in my main silverlight webpage by importing the namespace.

xmlns:Award="clr-namespace:OndernemersAward.Views"

Now I add the following to my website but it tells me it could not be found, but it is here, even the auto completion tells me that it's an option! See captura de pantalla.

<Award:AdminLogin x:Name="Test"></Award:AdminLogin>

This is the XAML code for the AdminLogin page:

<UserControl x:Class="OndernemersAward.Views.AdminLogin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">


    <Grid x:Name="LayoutRoot" Background="White">
        <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
          Opacity="0.765" Fill="#FF8A8A8A"/>
        <Border CornerRadius="30" Background="#FF5C7590" Width="600" Height="250">
            <Button Content="Close" Width="100" Height="50" Name="btnClose"
                         Click="btnClose_Click" />
        </Border>
    </Grid>

</UserControl>

I really have no idea what is causing this and it's driving me loopy! :P

I hope somebody can help me, thanks. Thomas

preguntado el 08 de noviembre de 11 a las 19:11

1 Respuestas

Build your project. XAML cannot see classes/namespaces until you build them

respondido 08 nov., 11:23

OMG, seriously?! Thank you so much... :P - Schoof

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.