Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista Tutorial - Custom Control VS2008 support

 
 
Old 08-14-2008   #1 (permalink)
aagranov2007
Guest


 
 

Custom Control VS2008 support

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?

My System SpecsSystem Spec
Old 08-15-2008   #2 (permalink)
Mark Salsbery [MVP]
Guest


 
 

Re: Custom Control VS2008 support

<aagranov2007@xxxxxx> wrote in message
news:a88cab64-3434-4880-acf8-75c5200ceb25@xxxxxx
Quote:

> 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++


My System SpecsSystem Spec
Old 08-15-2008   #3 (permalink)
aagranov2007
Guest


 
 

Re: Custom Control VS2008 support

On Aug 15, 11:41 am, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
Quote:

> <aagranov2...@xxxxxx> wrote in message
>
> news:a88cab64-3434-4880-acf8-75c5200ceb25@xxxxxx
>
>
>
Quote:

> > 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:
>
Quote:

> > 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.
>
Quote:

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

> > My XMLNS declaration:
>
Quote:

> > 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.
>
Quote:

> > 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"
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Zoom support in custom control .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46