Folks:
I am trying to get the DataBindingLab from the Hands-On-Labs to compile. I have nto changed anything, but it will not compile.
Here is the offending code:
<
Mapping XmlNamespace="src" ClrNamespace="DataBindingLab" ><
Window x:Class="DataBindingLab.AddProductWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="src"
Title="Add Product Listing"
SizeToContent="WidthAndHeight"
ResizeMode="NoResize"
>
<
Window.Resources><src:SpecialFeaturesConverter x:Key="specialFeaturesConverter" />
</Window.Resources>
I get the following error when I try to compile:
Error 3 'src' is not a recognized namespace. Line 11, position 4. C:\Documents and Settings\davida\My Documents\MSDN\WPF Hands-On Labs - January 2006 CTP\HOL-PRSHOL04\Source\cs\Ex1\Task1\DataBindingLab\DataBindingLabApp.xaml 11 4 DataBindingLab
I see other threads about this being a problem with the XAML editor on VS 2005, but the same error pops up when I have all the files closed. I also tried adding the assembly attribute to the Mapping tag to no effect.
Any ideas
David

Hands-on lab and the February CTP
Jason S.
One small question: is it a known bug that the designer view bombs once you add a "clr-namespace: " item
I have the DataBindingLab example working fine. However, I cannot open the designer view because it complains about not being able to find assembly ''. If I try supplying the DataBindingLab assembly name, it doesn't work.
Just want to know if something's wrong in my environment, or if it's a known issue.
Neo-Claw
Use the tool XamlMigreate.exe to update your old xaml file to Feb.CTP.
Or you do this job by hand:
change the
xmls:src="src" to
xml:src = "clr-namespace:XBox"
Good luck~
Count Zero
I think that this is a "known" issue. The "Orcas" community preview has not yet been updated to the Feb. CTP syntax-changes in all places. I think (hope) that this will be fixed in Beta 2...
advdbg
I posted a tool [1] that can help migrate files from the old syntax to the new one:
[1] http://www.longhornblogs.com/rrelyea/archive/2006/02/14/XamlMigrator.aspx
Ernee
One small correction: it is clr-namespace, not crl-namespace
Took me a bit to find that one... ;-)
David
ski123
As far as I know, the Mapping PI has been deprecated in the Feb. CTP.
You have to use a special URI to create a mapping between XML-NS and .Net namespaces. Remove the Mapping PI and replace the xmlns:src="src" with the following:
xmlns:src="crl-namespace:DataBindingLab"
The general syntax is:
xmlns:<nsabbr>="crl-namespace:<dotnet_namespace>;assembly=<assembly>"
Hope this helps.