#64 – Visual Studio Creates XAML for You

When you dbl-click a .xaml file in the Solution Explorer, the WPF designer opens.  You’ll see a split window with Design and XAML tabs.

You make changes on the Design tab by dragging/dropping controls from the toolbox or by selecting objects and making changes in the Properties window.

You make changes on the XAML tab by editing the XAML directly.

Visual Studio keeps the content of these two tabs in synch:

  • When you change layout on the Design tab – Visual Studio creates/change XAML code to match the layout
  • When you change XAML code – Visual Studio updates the layout to match the XAML
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: