#188 – Adding Controls to a Window Using Blend

Like Visual Studio, you can use Blend to add controls to a window by dragging and dropping the control onto the window’s design surface.

Start by finding the window that you want to edit, listed as a .xaml file in the solution explorer.

The will open the window in a design view editor.  By default, you see just the design surface of the window.  Click on the Split icon, located to the upper right.

This will change the editor to show both the design surface and the XAML.

To drag a control onto the design surface, find the list of WPF controls on the Assets tab (right under the main menu).

Once you find the control that you want, left-click and drag it onto the window’s design surface.  In the example below, we add a CheckBox to the window.