The official source of product insight from the Visual Studio Engineering Team
Today at BUILD we announced the availability of Visual Studio 2013 and Blend that brings forward significant advances for authoring XAML-based Windows Store apps for Windows 8.1. This post describes some of the new experiences we are excited to bring to you. In follow up posts, we will describe each of these experiences in greater detail – so stay tuned.
Everything we’ll tell you about today is only available for Windows Store apps with Visual Studio 2013. To try these exciting new capabilities, you’ll need to either re-target your existing Windows 8 app (retargeting guidance here), or create a new one.
We received a lot of feedback from you on features that would be useful when developing Windows Store XAML apps. Based on this feedback we have added a lot of new features to the XAML editor in Visual Studio 2013 Preview.
We believe that what differentiates a good app from a great app is the amount of attention to details. To help you precisely layout and align controls in Windows Store XAML apps that cross layout hierarchies, we are introducing a guide mechanism that allows you to create visual snapping points at design time. We are also introducing a ruler mechanism that allows you to precisely measure the size of controls and their constraints.
What makes the rulers and guides mechanism unique in Blend for Visual Studio is the fact that they are designed to be fully dynamic in nature. This is important because Windows Store apps should be designed to work under a number of different form factor settings, and hence require constructs that are not tied to any one particular static layout. You can snap a guide to either the left edge of the app or the right edge of the app, and the guides dynamically adjust based on Display Size you have specified when previewing the app on the design surface.
While not a part of this Preview release, we also hope to add a number preset guide configurations that adhere to standard Windows design guidelines, and should make it really easily for you to create layouts without needing to constantly reference the design guideline documents.
Blend for Visual Studio 2013 Preview makes it really easy for you to edit styles, templates and resources that live in other documents. In prior versions of Blend, editing such a style/template would result in complete loss of your editing context as Blend would switch the active document to the one defining the style /template – something that we have heard loud and clear from you as not being a productive experience Hence we now allow for full “in-place” editing of the style/template right within the document that consumes it, with full undo/redo support across document boundaries. To illustrate this, the screenshot below shows the experience of editing a DataTemplate that is defined in App.xaml, from within GroupedItemsPage.xaml.
Most standard Windows Store app XAML controls have their default look-n-feel specified in a way that the makes layout bounds are not the same as the visual bounds (because of the presence of visuals in the ControlTemplate required for indicating keyboard focus), and are off by a few pixels causing alignment issues when you are trying to quickly layout control on the design surface To address this issue, the snapping engine in the design surfaces of Visual Studio and Blend has been re-designed to allow you to create precisely aligned controls that snap perfectly to the visual bounds of the controls instead of the layout bounds. We have also added support for baseline alignment of controls that have textual content like Buttons and TextBlocks.
Windows 8.1 brings a large number of new controls for the XAML developer: Hub, CommandBar/AppBarButton, DatePicker, TimePicker and SettingsFlyout. Visual Studio and Blend make it really easy to create and edit these controls visually. The following is a screenshot of the design experience for the new CommandBar control that shows how easy it is now to create and edit the AppBarButton control in Blend.
You can select the AppBarButton in the Objects and Timeline panel:
Modify the properties in the Properties Inspector:
In real-time, you’ll see your changes reflected on our artboard:
The Device panel in Visual Studio and Blend has been updated to support a number of new Windows 8.1 functionality like support for new display sizes (example: 7” 1080p), application snapping to various edges and minimum width specification of apps. In addition, the design surface also allows you to arbitrarily resize your app to various sizes in order to get an accurate visual preview of how the app would look like when it is running as shown in the screenshot below. These features allow you to make visual changes to your apps using your preferred mechanism (for example, the State pane and VisualStateManager) at design time.
The project templates for building XAML apps have been simplified and updated to adhere to the updated Windows design guidelines like adding support for dynamically resizable apps. In addition, we have also added a brand new project template for building an app that uses the Hub navigation pattern as shown below.
Visual Studio 2013 Preview brings significant improvements to the performance and reliability of the XAML designer in a variety of scenarios. Based on the feedback we heard from you via a variety of channels like Connect and Twitter, the two big ticket items that we have focused on improving the experience for in this release are the time taken to load the designer and time required to have Intellisense available in the XAML editor. We’ve also made a number of targeted fixes around various other scenarios like editing large XAML files, time to bring up data binding dialog, property inspector responsiveness, etc.
We are certainly not done, and will continue to make improvements till we release, but the following is a sampling of scenarios where you can see the improvements we have made in this Preview over Visual Studio 2012 Update 3.
Visual Studio 2012 Update 3
Visual Studio 2013 Preview
Designer load time - Large Windows Store project
XAML Intellisense Availability – Large Windows Store project
‘Create Data Binding’ dialog for a 120 element XAML file
We love Behaviors and are hard at work to add support for Windows Store apps written in C#, C++ and VB. Blend for Visual Studio 2013 will support Behaviors, they just were not complete enough to be a part of this Preview release. Stay tuned for an update on these shortly!
We are really interested in knowing more about what you think about these experiences and what you would like to see in Visual Studio and Blend going forward – please let us know via UserVoice or Connect!
Thanks, The XAML Tools team
Nice, but what about desktop WPF apps? I guess most of these improvements could be available?
Make XAML for C++ available for the desktop too.
XAML and WPF are still alive ? Sleep well microsoft !
The propagated commitment to .NET feels like a bad joke because you just seem to be committed to pushing .NET devs to going the new WinRT XAML route.
Wheres we hoped to get some improvements on our hard-earned investements like WPF (or Silverlight or XNA...). Come on, porting the XAML improvements to WPF also could not be that hard. Sad.
Totally agree with Marius Bancila.
The best wuold be a desktop version of winrt ('cmon MS, you only need to add just few lines of code! )--
add support for Windows Store apps written in --FSharp -- F#
Maybe you should implement a sort of tool that reports back what people actually use Visual Studio for because it seems that you are completely unaware that desktop apps (WPF, Silverlight, C#, .Net) are created using Visual Studio too....
Do any anyof these features apply to WPF?
Just installed on laptop with 8.1 preview: got a couple of errors at end of setup (didn't note these down), clicked Launch and got:
"Cannot find one or more components. Please reinstall the application".
How come these things never work properly first time??
9 comments, 5 of those refering to WPF and the hope to continue your investements in that area (or at least port the WinRt XAML improvements over there).
Morten +1: I wonder if you have valid metrics and do proper analysis on those...?
WinRT may be great for Tablets , but we cannot dumb down our desktop applications which still use mouse and keyboard to that level. Comeon MS wakeup and bring these uodates to WPF too.
Not long ago Microsoft has started releasing the Windows Phone 7.8 update. WP7 market share is about the same as the share of WP8.
Today MS releases Visual Studio 2013 preview which cannot even open WP7 projects.
What's in your head? In your head....
>Maybe you should implement a sort of tool that reports back what people actually use Visual Studio for because it seems that you are completely unaware that desktop apps (WPF, Silverlight, C#, .Net) are created using Visual Studio too....
Microsoft does these surveys, but then they do the opposite regardless of the opinion of the developers.
Nice to see that the toys are now running faster.
But can you please tell us about the real development stuff? Like WPF improvements and XAML2009 support. Any non-abysmal news here?
When it'll release? Especially on dreamspark.com? :D