#192 – Setting a Control’s Properties Using Blend

You can set a control’s properties in either Blend or Visual Studio.  To set properties for a control from Blend, do the following:

Open the window containing the control.  Left-click to select the control.

Now make sure that the Properties icon on the Properties panel at the right side of the IDE is selected.

With the Properties icon selected, you can see all of the properties of the control that you selected, organized into logical groups.  You can view or edit the control’s properties from this panel.

For example, to change the button’s Background property, you can use the color editor in the Brushes section.

By default, Blend will create a background that is a gradient, rather than a solid color.

As you change the color in this editor, the button’s color will change in the designer.

You can also see the updated XAML, showing the linear gradient.

Advertisements

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

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 )

Google+ photo

You are commenting using your Google+ 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: