Click here to Skip to main content
15,894,362 members
Articles / Desktop Programming / WPF

WPF Control Composition (Part 2 of 2)

Rate me:
Please Sign up or sign in to vote.
4.86/5 (12 votes)
21 Mar 2012CPOL6 min read 44.8K   1.6K   36  
Theming an existing user control adds flexibilty at the application side without changing the original implementation. This article gives an example by theming a user control that was previously not fully themeable.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSimpleControls", "TestSimpleControls\TestSimpleControls.csproj", "{384FCAB1-23E0-4D50-8754-8677B1794874}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleControls", "SimpleControls\SimpleControls.csproj", "{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|x86.ActiveCfg = Debug|x86
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Debug|x86.Build.0 = Debug|x86
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|Any CPU.Build.0 = Release|Any CPU
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|Mixed Platforms.Build.0 = Release|x86
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|x86.ActiveCfg = Release|x86
		{384FCAB1-23E0-4D50-8754-8677B1794874}.Release|x86.Build.0 = Release|x86
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Debug|x86.ActiveCfg = Debug|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Release|Any CPU.Build.0 = Release|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{0E69BE38-78C0-4662-A0E1-56C5913B5C3A}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	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 Code Project Open License (CPOL)


Written By
Germany Germany
The Windows Presentation Foundation (WPF) and C# are among my favorites and so I developed Edi

and a few other projects on GitHub. I am normally an algorithms and structure type but WPF has such interesting UI sides that I cannot help myself but get into it.

https://de.linkedin.com/in/dirkbahle

Comments and Discussions