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