TechBubbles Microsoft Technology BLOG

XAML Editing and Coding Experience in Visual Studio 2013

This post outlines some new things for XAML in Visual Studio 2013 release, coding and editing experience is much easier in this release.

As you type in XAML editor you will get an autocomplete and it is lot more flexible now, for example if you want to add a stackpanel and you mistakenly type like “stak” it still shows in window.

imageimage

some times you might write nested grids in your XAML editor and want to comment Section 2 and Section 3 then you can use CTRL + K + C by selecting the code block

image

You drag the controls to the editor while designing the interface but you can also use the snippets by right-clicking on the editor and say Insert Snippet

image

You can add the snippets by going to Snippet manager in Tools menu, drop the snippets in this folder. You can browse this link for XAML snippets. All the styles and templates that are commonly used in windows are available as snippets in the link.

image

Define a style in app.xaml and set the target type to textblock as shown below and you can reuse in for setting the textblock style

image

when you are dragging the controls to the XAML editor, some times you may drag in to the wrong location, in this case you can always use document outline tree which shows all the elements in your page. now you can directly drag in to the document outliner. It is basically visual representation of your mark-up.

image

when two many controls on your xaml screen and you want to concentrate on particular one then you  can hide the remaining by just clicking hide button

image

Hub is a control which encapsulates the user experience of windows 8 and windows 8.1. It contains a header section and it is truly a layout control. The control looks as below after adding some sections

image

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

Add Comment

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud