O'Reilly logo

Blend for Visual Studio 2012 by Example : Beginner's Guide by Abhishek Shukla

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

Time for action – creating a custom control

Perform the following steps to create a custom control

  1. Right-click on the project name, Chapter09, in the Projects panel and select Edit in Visual Studio. It is easier to create a custom control in Visual Studio as it provides a built-in template to create custom controls. This is shown in the following screenshot:
    Time for action – creating a custom control
  2. In Visual Studio, right-click on the project name, Chapter09, in Solution Explorer and select Add New Item….
  3. Select CustomControl (WPF) in the Add New Item window, and name it SwitchCustomControl.cs, as shown in the following screenshot:
  4. When we click on Add, a new class appears that inherits from ...

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