I created a custom control and then attempted to use it in my main xaml file. I created a reference to the custom control using the xml namespace declaration. The xaml file looks like this:
Code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApplication1;assembly=WpfApplication1"
Title="Window1" Height="400" Width="400">
<Grid>
</Grid>
</Window>
The error reads as this:
Code:
Assembly 'WpfApplication1' was not found.
Verify that you are not missing an assembly reference.
Also, verify that your project and all referenced assemblies have been built.
Just to test, I created a new WPF project and added that xmlns declaration, nothing else, and it still gives the same error.
To note: This is Visual C# 2008 running on Win XP SP3. I know this error can be avoided cause I have another project I downloaded as a source reference that uses custom controls and does a similar xmlns declaration and it runs just fine.
Anyone have any ideas?