Reputation: 191
I am new to WPF / Xaml. I tried to run a demo program to test WPF with NHibernate. I used the VmWrapperDemo but i cant get it compiled!
<Window x:Class="VmWrapperDemo.View.WindowMain"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:VmWrapperDemo.ViewModel;assembly=VmWrapperDemo"
Title="VM Collection Demo" Height="325" Width="500" WindowStartupLocation="CenterScreen">
<Window.Resources>
<!-- Value Converters -->
<vm:ContactConverter x:Key="ContactConverter" />
<vm:AmountConverter x:Key="AmountConverter" />
<vm:DateConverter x:Key="DateConverter" />
</Window.Resources>
</Window>
It is the
xmlns:vm ...
definition which i dont understand and gives me headaches. What does it mean i why do i get the following compiler error: "The tag ContactConverter is not available"
I am lost! Please help!
Upvotes: 1
Views: 194
Reputation: 30117
Try this
change assembly=VmWrapperDemo
to assembly=VmWrapperDemo.ViewModel
Assembly name in the link you gave is VmWrapperDemo.ViewModel
not VmWrapperDemo
Upvotes: 2