Has anyone else had trouble with the new clr-mapping of the FebCTP? I can't
get the most basic of namespace mapping (even within the same assy) working.
Consistent "Assembly '' could not be found." error.
I have Chris Sells' WPF book, and got his latest samples off his site, same
error.
From some other thread, I thought that the problem may be because I used the
uninstall tool to get rid of my JanCTP bits, and some were left over. So I
did complete reinstall on this box of WinXP SP2, all updates, VS2005, then
the FEB beta. Exact same error.
Here's sample XAML code from one of Sells' projects which gives error listed
above:
Thanks,
<Window x:Class="DataBindingDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace

ataBindingDemo"
Width="250"
Height="150"
Title="Nick Names">
<Window.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontStyle" Value="Italic" />
</Style>
<local:Nicknames x:Key="names">
<local:Nickname Name="Don" Nick="Naked" />
<local:Nickname Name="Martin" Nick="Gudge" />
<local:Nickname Name="Tim" Nick="Stinky" />
</local:Nicknames>
</Window.Resources>
<!--<DockPanel x:Name="dockPanel">-->
<DockPanel DataContext="{StaticResource names}">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<TextBlock>Name: </TextBlock>
<TextBox Text="{Binding Path=Name}" />
<TextBlock>Nick: </TextBlock>
<TextBox Text="{Binding Path=Nick}" />
</StackPanel>
<Button DockPanel.Dock="Bottom" x:Name="addButton">Add</Button>
<ListBox ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<TextBlock Text="{Binding Path=Name}" />:
<TextBlock Text="{Binding Path=Nick}" />
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</DockPanel>
</Window>