#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 these ads

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 381 other followers

%d bloggers like this: