Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tech Ed North America 2010 11/27/ :47 PM Required Slide

Similar presentations


Presentation on theme: "Tech Ed North America 2010 11/27/ :47 PM Required Slide"— Presentation transcript:

1 Tech Ed North America 2010 11/27/ :47 PM Required Slide SESSION CODE: DEV313 Making the Most of the Microsoft Silverlight and WPF Designer in Microsoft Visual Studio 2010 Mark Wilson-Thomas & Mark Boulter Program Managers, Silverlight & WPF Designer Team Microsoft Corporation © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 What You’ll Learn From This Talk
Visual Studio 2010 WPF and Silverlight Designer Tips and Tricks for Productivity Using designer features even when editing XAML Using the data and sample data features of the designer Common designer load issues and how to avoid them

3 Tech Ed North America 2010 11/27/ :47 PM Demo 1: Using the Properties Window for Fun and Profit, Whether in Design or XAML View Mark Wilson-Thomas Program Manager, Silverlight & WPF Designer Team Microsoft Corporatio DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 Recap: Key Points from Demo 1
Use the Properties Window to get help and direction whether in the design view or the XAML view Activate the designer when in a Resource Dictionary or App.xaml to get help from the Properties Window Answering the question “Why is my button Red” by using Go To Definition Style IntelliSense Using multi-select with the Doc Outline to change a value across many elements

5 Tech Ed North America 2010 11/27/ :47 PM Demo 2: Building up a Data Centric Application Scaffolding, Sample Data, Customization, Styling Mark Boulter Program Manager, Silverlight & WPF Designer Team Microsoft Corporation DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 Demo 2: Product Catalog Application
Tech Ed North America 2010 11/27/ :47 PM Demo 2: Product Catalog Application DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 Recap: Key Points from Demo 2
Use the Data Source Window to quickly create your UI Use the Binding Picker and Sample Data to easily set up and understand your Bindings at design time Use the “Data Can” to find and configure your DataSource Use Find/Apply Styles and Resources with Resource Picker Use Sample Data, a “Debug Converter” and the new Trace options dialog to track down and fix binding errors

8 Tech Ed North America 2010 11/27/ :47 PM How To Make Your Application “Safe for Design Time” Avoiding Common Pitfalls that Stop the Designer Loading  Mark Boulter Program Manager, Silverlight & WPF Designer Team Microsoft Corporation DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 Things to know Look @ the help when you get a load error
Your code design time (but not always)  What does run: Everything that gets created in the XAML Instances of Controls and UserControls ValueConverters Classes referenced as resources What does not run: The top level thing you are designing Window, UserControl, Page etc. when you are designing it Your Application class

10 Common errors The most common cause of issues is assuming a runtime environment Examples: a UserControl instance calling a web service a ValueConverter accessing a value that does not design time trying to access a resource from code behind that only exists on the real instance trying to access properties on objects that we don’t design time trying to read files relative to the application root

11 Debugging tips Look @ the exception information in the gold bar
If you get a load failure screen the whole stack trace Use a second copy of VS to debug the first Turn off “Just my code” Add the “Attach to Process” command if needed Delete the .suo file or bin and obj directories to avoid crashes on start up

12 Debugging tips Look @ the exception information in the gold bar
If you get a load failure screen the whole stack trace Use a second copy of VS to debug the first Turn off “Just my code” Add the “Attach to Process” command if needed Delete the .suo file or bin and obj directories to avoid crashes on start up

13 How to turn things off Use DesignerProperties.GetIsInDesignMode (WPF & SL) Use DesignerProperties.IsInDesignTool (SL) Use d:DesignInstance or d:DesignData to enable databinding design time without creating instances of your classes

14 Tech Ed North America 2010 11/27/ :47 PM Demo3: How To Make Your Application “Safe for Design Time” Avoiding Common Pitfalls that Stop the Designer Loading  DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 Recap: Key Points from Demo 3:
Common places where your code can cause issues Constructors for Hosted Controls (UserControl, Page etc) Convertors DataTemplate Selectors UserControl Load Methods Use GetIsInDesignMode to branch round code that shouldn’t run at Design Time Debug design time issues by: Using the Designer Goldbar Attaching a second Visual Studio instance

16  Summary Use the Prop Window to get help editing and navigating whether using Designer or XAML editor Use Design Time Data (Sample Data) for a better experience designing your app Use the Data Sources Window for an easy app scaffolding experience, customize with the Data Binding Picker and Resource Picker Make your app safe for design time by trapping issues in Constructors and Converters 

17 Useful Resources WPF and Silverlight Designer Team Blog (Learning, FAQs, Announcements) Includes a post and source code for the sample application we built Upcoming post with much more detail on use of Sample Data Silverlight and WPF Designer Forum The best place to interact with the team or

18 Want to change the future of technology? Good. So do we.
Microsoft Developer User Research would like to invite you to participate in Usability studies! Give us your feedback and help drive innovation Fill out our survey and sign up to participate in upcoming studies for developers! Drop it off at our booth-DAT#5-DAT Track within the Yellow area/zone of the TLC Free Microsoft products for participating Too busy to fill out the survey? Contact Christine Alluise @

19 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 11/27/ :47 PM Track Resources Visual Studio – Soma’s Blog – MSDN Data Developer Center – ADO.NET Team Blog – WCF Data Services Team Blog – EF Design Blog – © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 Resources Learning Required Slide www.microsoft.com/teched
Tech Ed North America 2010 11/27/ :47 PM Required Slide Resources Learning Sessions On-Demand & Community Microsoft Certification & Training Resources Resources for IT Professionals Resources for Developers © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 Complete an evaluation on CommNet and enter to win!
Tech Ed North America 2010 11/27/ :47 PM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st
You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

23 Tech Ed North America 2010 11/27/2018 11:47 PM
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

24 Required Slide Tech Ed North America 2010 11/27/2018 11:47 PM
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Tech Ed North America 2010 11/27/ :47 PM Required Slide"

Similar presentations


Ads by Google