BBQ Shack – Ocean v2 for Visual Studio 2008 |
- BBQ Shack – Ocean v2 for Visual Studio 2008
- Behind the Curtain
- Behind the Curtain
- Motorola Droid - First Impressions
BBQ Shack – Ocean v2 for Visual Studio 2008 Posted: 07 Feb 2010 12:16 PM PST What the Heck is BBQ Shack? In September of 2009 I went on a cruise to Alaska with a simple goal of writing a WPF application that shared business objects and Ocean framework code with a Silverlight 3 project within the solution. The WPF and Silverlight...( read more )...(read more) |
Posted: 07 Feb 2010 06:46 AM PST Our team (officially Community Program Managers, but from time to time our conceit is to call ourselves STO Ninjas) has quietly expanded over the past few months, including the additions of two amazing and terrific new voices: Pete Brown and Jon Galloway...( read more )...(read more) |
Posted: 07 Feb 2010 06:46 AM PST Our team (officially Community Program Managers, with the secret identity of STO Ninjas) has quietly expanded over the past few months, including the additions of two amazing and terrific new voices: Pete Brown and Jon Galloway. Their names are linked to their blogs, which I highly recommend subscribing to. Syntax Highlighting (Finally) Done RightThis posting, however, is occasioned by Jon writing a post on how to make Syntax Highlighter work with Community Server… no small trick, but Syntax Highlighter now supports hosting (!). Jon provides all the links you need (including a link to our fearless leader's extensive post on the topic) , and great instructions, The key benefit is that the code has syntax highlighting but still support clean copy and paste; something I've wanted (and readers have demanded) for a long time. Here's an example: using System; using System.Collections.Generic; using System.ComponentModel; namespace SilverlightHVP.ViewModel { public class ItemsViewModel : INotifyPropertyChanged { private State state; public List<Item> Items { get { return state.CurrentItems; } } public Item CurrentItem { get { return state.CurrentItem; } set { if ( value != null ) { state.CurrentItem = value; NotifyPropertyChanged( "CurrentItem" ); } } } public ItemsViewModel( State state ) { this.state = state; this.state.CurrentSetChanged += new State.CurrentSetChangedHandler(state_CurrentSetChanged); UpdateItems(); } void state_CurrentSetChanged( object sender, EventArgs e ) { UpdateItems(); } private void UpdateItems() { NotifyPropertyChanged( "Items" ); } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(string propName) { if (PropertyChanged != null ) { PropertyChanged(this, new PropertyChangedEventArgs(propName)); } } } } If you are looking at this on line, you should see a very nicely formatted layout with syntax highlighting (see image). In a stream, however, it is straight html. Even more valuable, notice the four symbols (circled in red); when you click on the code these appear and offer "show source" (the image has an inlay of the source as it is shown when clicking this). The other three are copy to clipboard, print and help. Very very nice. Thanks Jon!
(Click on image for full size) This work is licensed under a Creative Commons license. |
Motorola Droid - First Impressions Posted: 06 Feb 2010 03:31 PM PST URL : http://www.motorola.com/consumers/US-EN/Motorol... I've given up on my old Windows Mobile phone and been looking around for a replacement. Now let me be clear, I can't have an iPhone because AT&T is clearly evil. So I decided to take the plunge...( read more )...(read more) |
You are subscribed to email updates from "microsoft" via reza in Google Reader To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment