Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Creating a look-less custom control in WPF

, 4 Jun 2006
In WPF, custom controls should be look-less. That means, that business logic and UI are strongly separated. When you create a control, you can provide a default template for the control, but anyone who uses the control can override it without touching the business logic.
wpfcustomcontrol_src.zip
Clock Custom Control
Applications
WindowsApplication
bin
Release
CustomControlLibrary.dll
WindowsApplication.exe
obj
Debug
TempPE
Window1.baml
WindowsApplication_MarkupCompile.lref
Release
TempPE
Window1.baml
WindowsApplication_MarkupCompile.lref
Properties
Settings.settings
WindowsApplication.csproj.vspscc
ClassLibrary
CustomControlLibrary
bin
Release
CustomControlLibrary.dll
CustomControlLibrary.csproj.vspscc
obj
Debug
CustomControlLibrary_MarkupCompile.lref
TempPE
themes
generic.baml
Release
CustomControlLibrary_MarkupCompile.lref
TempPE
themes
generic.baml
Properties
Settings.settings
themes
Solutions
WindowsApplication.vssscc
using System;
using System.Windows;
using System.Data;
using System.Xml;
using System.Configuration;

namespace WindowsApplication
{
	/// <summary>
	/// Interaction logic for MyApp.xaml
	/// </summary>

	public partial class MyApp : Application
	{

	}
}

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)

About the Author

Karin Huber
Software Developer software architects
Austria Austria
Hi, my name is Karin Huber. Since 1998 I have been working as a developer and IT consultant focusing on building database oriented web applications. In 2007 my friend Rainer and I decided that we want to build a business based on COTS (component off-the-shelf) software. As a result we founded "software architects".
 
These days we are offering our first version of the time tracking software called 'time cockpit'. You can find more information at www.timecockpit.com.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 4 Jun 2006
Article Copyright 2006 by Karin Huber
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid