#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.


About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #188 – Adding Controls to a Window Using Blend

  1. Pingback: #287 – Adding Controls to a Window in Blend by Editing XAML « 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: