Quantcast
Viewing all articles
Browse latest Browse all 18858

The Name XXX does not exist in the namespace "clr-namespace:YYY".

I  have a VB.Net WPF Application tutorial project I am working on to learn WPF.  I have created a couple of classes within the project and stored them in a folder called Controls.  The classes are defined like this.

Namespace MusicPlayer.Controls
    Public Class UpdatingMediaElement
    ...code here

   End Class

End Namespace

In my XAML I define the namepace like this

    xmlns:c="clr-namespace:MusicPlayer.Controls"

This is completed with intellesens

When I try using the class like this

            <c:UpdatingMediaElement Name="MyMediaElement" LoadedBehavior="Manual" Source="{Binding ElementName=SongList,Path=SelectedItem.FileName}"/>

Even though the intellesense works with I type <c:  and I can autocomplet the UpdatingMediaElement the line causes an error

The name "UpdatingMediaElement" does not exist in the namespace "clr-namespace:MusicPlayer.Controls".

The Root Namespace of the project is blank.

What am I doing wrong to get these errors and how do I fix it?


Jeff Davis


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>