Windows Vista Beta | WinVistaBeta.com - Message | Custom Control VS2008 support

November 20, 2008  
Subject: Custom Control VS2008 support
Group: microsoft.public.windows.developer.winfx.avalon
Date: 8/14/2008 1:31:48 PM
From: aagranov2007@gmail.com

I want to be able to view my custom controls within a XAML document.
I've referenced the custom control assembly from my application. I've
added the XAML file to the application project. But I still get a
bunch of errors:

Error 1 The type 'WPF:TextIndicator' was not found. Verify that you
are not missing an assembly reference and that all referenced
assemblies have been built.

I am using the XmlnsDefinition attribute in the AssemblyInfo.cs of my
custom control library for the XMLNS<-->CLR mapping.

My XMLNS declaration:

xmlns:WPF="http://CustomControls/WPF" which matches the URL
defined using XmlnsDefinition. I should not that I can deserialize the
custom controls during run-time and custom controls properly render.

What are the steps I need to take in order to view custom control in
VS2008 design mode?

Back
Subject: Re: Custom Control VS2008 support
Group: microsoft.public.windows.developer.winfx.avalon
Date: 8/15/2008 11:41:25 AM
From: "Mark Salsbery [MVP]" [Email Address Protection]

<aagranov2007@gmail.com> wrote in message
news:a88cab64-3434-4880-acf8-75c5200ceb25@w7g2000hsa.googlegroups.com...
> I want to be able to view my custom controls within a XAML document.
> I've referenced the custom control assembly from my application. I've
> added the XAML file to the application project. But I still get a
> bunch of errors:
>
> Error 1 The type 'WPF:TextIndicator' was not found. Verify that you
> are not missing an assembly reference and that all referenced
> assemblies have been built.
>
> I am using the XmlnsDefinition attribute in the AssemblyInfo.cs of my
> custom control library for the XMLNS<-->CLR mapping.
>
> My XMLNS declaration:
>
> xmlns:WPF="http://CustomControls/WPF" which matches the URL
> defined using XmlnsDefinition. I should not that I can deserialize the
> custom controls during run-time and custom controls properly render.
>
> What are the steps I need to take in order to view custom control in
> VS2008 design mode?

You have added a reference to the custom control's assembly (the assembly
containing the TextIndicator class) to the project?

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++



Back
Subject: Re: Custom Control VS2008 support
Group: microsoft.public.windows.developer.winfx.avalon
Date: 8/15/2008 3:57:16 PM
From: aagranov2007@gmail.com

On Aug 15, 11:41 am, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
> <aagranov2...@gmail.com> wrote in message
>
> news:a88cab64-3434-4880-acf8-75c5200ceb25@w7g2000hsa.googlegroups.com...
>
>
>
> > I want to be able to view my custom controls within a XAML document.
> > I've referenced the custom control assembly from my application. I've
> > added the XAML file to the application project. But I still get a
> > bunch of errors:
>
> > Error 1 The type 'WPF:TextIndicator' was not found. Verify that you
> > are not missing an assembly reference and that all referenced
> > assemblies have been built.
>
> > I am using the XmlnsDefinition attribute in the AssemblyInfo.cs of my
> > custom control library for the XMLNS<-->CLR mapping.
>
> > My XMLNS declaration:
>
> > xmlns:WPF="http://CustomControls/WPF" which matches the URL
> > defined using XmlnsDefinition. I should not that I can deserialize the
> > custom controls during run-time and custom controls properly render.
>
> > What are the steps I need to take in order to view custom control in
> > VS2008 design mode?
>
> You have added a reference to the custom control's assembly (the assembly
> containing the TextIndicator class) to the project?
>
> Mark
>
> --
> Mark Salsbery
> Microsoft MVP - Visual C++

Thanks, I'd already added that reference to the assembly yesterday.
That did the trick.

xmlns:local="clr-namespace:namespaceName;assembly=assemblyName"

Back