O'Reilly logo

Pro C# 2010 and the .NET 4 Platform, Fifth Edition by Andrew Troelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

31.6. Building Custom UserControls with Blend

During your examination of dependency properties, you were briefly introduced to the concept of a UserControl. In some ways, a UserControl is the next logical step after a control template. Recall that when you build a control template, you are essentially applying a skin which changes the physical appearance of a WPF control. A custom UserControl, however, allows you to literally build a new class type that may contain unique members (methods, events, properties, etc.). As well, many custom UserControls use templates and styles; however, it is also just fine if the control's tree of markup is defined directly within the <UserControl> scope.

Recall that you can add a UserControl project item to any ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required