I am working through an MVVM tutorial, and I have the following code, written in Xaml:
<Window x:Class="WPFMVVM.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WPFMVVM; assembly=WPFMVVM"
Title="MainWindow" Height="388" Width="545">
The xmlns:local line is complaining saying that WPFMVVM assembly is not referenced. Although it is the assembly that I am working in.
Anybody know why?
Thanks
You must not have spaces in there & if it’s the assembly you work in just do not specify
assembly.The
assemblyparameter is for referenced assemblies. Also see the MSDN article on XAML namespaces.