Wednesday, March 30, 2011

My Visual Studio snippets

My Visual Studio snippets


My Visual Studio snippets

Posted: 29 Mar 2011 03:58 PM PDT

One of the great features of Visual Studio, that's been around for a while is snippets. Frankly, I should build more of these because I use them *so* often. I find them so useful I thought I'd share them here, either for you to use or to template into ones of your own. Firs t,when building templated controls I write this a lot: [TemplatePart(Name = ElementContent, Type = typeof (FrameworkElement))] And it's not just that, I then have to create a constant to define "ElementContent" and then usually load that value into a member variable as part of OnApplyTemplate. So I built a snippet that builds this stuff out for me, resulting in this: [TemplatePart(Name = ElementContent, Type = typeof (FrameworkElement))] //private...(read more)

Each one is the best - for different definitions of "best" [The BestFitPanel collection of layout containers provides flexible, easy-to-use options for Silverlight, WPF, and Windows Phone applications]

Posted: 30 Mar 2011 10:32 AM PDT

Just over a year ago, a couple of readers asked me about a WPF/Silverlight Panel that arranged things to make "best use" of available space without requiring the developer to set a bunch of stuff up in advance or know how many child elements there would...( read more )...(read more)

Silverlight Cream for March 30, 2011 -- #1068

Posted: 30 Mar 2011 06:07 AM PDT

In this Issue: Roy Dallal , Rudi Grobler , Jeff Prosise ( -2- ), Jesse Liberty , Morten Nielsen , Derik Whittaker , Peter Torr , Xianzhong Zhu , and Adam Kinney . Above the Fold: Silverlight: "Silverlight: Adding Google Streets View" Roy Dallal WP7: ...( read more )...(read more)

Silverlight, HttpWebRequest, HTTP Stacks and the UI Thread

Posted: 30 Mar 2011 01:41 AM PDT

This one comes from a customer who thought that they were seeing an issue in using the browser HTTP stack in Silverlight to make lots of HTTP requests. The issue seemed to be that the stack was blocking the UI thread and causing the UI to stutter. The...( read more )...(read more)

Silverlight in the Azure cloud - Part 2

Posted: 29 Mar 2011 02:00 PM PDT

Don't miss... Webinar recording: Switching on the Cloud for Silverlight Gill's series on getting prepared for Silverlight Exam SL4 Business App Development book: Show more books This is part 2 of 2 from the article series 'Silverlight in the Azure cloud...( read more )...(read more)

My Visual Studio snippets

Posted: 29 Mar 2011 03:58 PM PDT

One of the great features of Visual Studio, that's been around for a while is snippets. Frankly, I should build more of these because I use them *so* often. I find them so useful I thought I'd share them here, either for you to use or to template...( read more )...(read more)

No comments:

Post a Comment