Click here to Skip to main content
13,191,877 members (53,988 online)
Click here to Skip to main content

Stats

61.8K views
710 downloads
48 bookmarked
Posted 22 Sep 2010

A Guide to Cleaner XAML with Custom Namespaces and Prefixes (WPF/Silverlight)

, 22 Sep 2010
Clean up and manage your XAML references. This can be done using custom namespaces (scheme URLs) and custom prefixes.
Sandworks.Silverlight.NamespaceExample
Sandworks.Silverlight.NamespaceExample
Sandworks.Silverlight.NamespaceExample.ClassLibrary
Bin
Debug
Converters
Properties
Sandworks.Silverlight.NamespaceExample.ClassLibrary.csproj.user
Sandworks.Silverlight.NamespaceExample.suo
Bin
Debug
ar
bg
ca
cs
da
de
el
es
et
eu
fi
fr
he
hr
hu
id
it
ja
ko
lt
lv
ms
nl
no
pl
pt
pt-BR
ro
ru
sk
sl
sr-Cyrl-CS
sr-Latn-CS
sv
th
tr
uk
vi
zh-Hans
zh-Hant
Controls
Converters
Properties
Sandworks.Silverlight.NamespaceExample.csproj.user
Sandworks.Silverlight.NoNamespaceExample
Sandworks.Silverlight.NoNamespaceExample.ClassLibrary
Bin
Debug
Converters
Properties
Sandworks.Silverlight.NoNamespaceExample.ClassLibrary.csproj.user
Bin
Debug
ar
bg
ca
cs
da
de
el
es
et
eu
fi
fr
he
hr
hu
id
it
ja
ko
lt
lv
ms
nl
no
pl
pt
pt-BR
ro
ru
sk
sl
sr-Cyrl-CS
sr-Latn-CS
sv
th
tr
uk
vi
zh-Hans
zh-Hant
Controls
Converters
Properties
Sandworks.Silverlight.NoNamespaceExample.csproj.user

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandworks.Silverlight.NamespaceExample", "Sandworks.Silverlight.NamespaceExample\Sandworks.Silverlight.NamespaceExample.csproj", "{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandworks.Silverlight.NamespaceExample.ClassLibrary", "Sandworks.Silverlight.NamespaceExample.ClassLibrary\Sandworks.Silverlight.NamespaceExample.ClassLibrary.csproj", "{22DBBF77-E4CA-4106-BC51-C2BDF34608F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandworks.Silverlight.NoNamespaceExample", "Sandworks.Silverlight.NoNamespaceExample\Sandworks.Silverlight.NoNamespaceExample.csproj", "{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandworks.Silverlight.NoNamespaceExample.ClassLibrary", "Sandworks.Silverlight.NoNamespaceExample.ClassLibrary\Sandworks.Silverlight.NoNamespaceExample.ClassLibrary.csproj", "{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Regular Namespace Usage", "Regular Namespace Usage", "{4AEF6A10-E901-43B4-9CA6-28A20FE2B659}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Custom Namespace Usage", "Custom Namespace Usage", "{E301603B-ACEF-401B-863E-09EF5597FAE0}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438}.Release|Any CPU.Build.0 = Release|Any CPU
		{22DBBF77-E4CA-4106-BC51-C2BDF34608F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{22DBBF77-E4CA-4106-BC51-C2BDF34608F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{22DBBF77-E4CA-4106-BC51-C2BDF34608F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{22DBBF77-E4CA-4106-BC51-C2BDF34608F0}.Release|Any CPU.Build.0 = Release|Any CPU
		{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523}.Release|Any CPU.Build.0 = Release|Any CPU
		{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(NestedProjects) = preSolution
		{F3DADF2B-F5E4-4D17-934F-9CDCDA0DC438} = {4AEF6A10-E901-43B4-9CA6-28A20FE2B659}
		{22DBBF77-E4CA-4106-BC51-C2BDF34608F0} = {4AEF6A10-E901-43B4-9CA6-28A20FE2B659}
		{4B9F2BDF-1069-4DC9-969F-6CF6A47D0523} = {E301603B-ACEF-401B-863E-09EF5597FAE0}
		{A8D0FA0D-85FE-4DFD-93A0-5E1F20E58EBA} = {E301603B-ACEF-401B-863E-09EF5597FAE0}
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Author

Sandrino Di Mattia
Technical Lead RealDolmen
Belgium Belgium
I'm a Technical Consultant at RealDolmen, one of the largest players on the Belgian IT market: http://www.realdolmen.com

All posts also appear on my blogs: http://blog.sandrinodimattia.net and http://blog.fabriccontroller.net

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171017.2 | Last Updated 22 Sep 2010
Article Copyright 2010 by Sandrino Di Mattia
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid