Monday, November 30, 2009

Silverlight 4 Links

Silverlight 4 Links


Silverlight 4 Links

Posted: 30 Nov 2009 02:13 PM PST

Here's a set of interesting Silverlight 4 links… Bits & Tools Visual Studio 2010 Beta Silverlight 4 Beta Tools For Visual Studio 2010 Developer Runtime (Windows, Mac) ......( read more )...(read more)

Two birds, squared! [Silverlight/WPF Data Visualization Development Release 3 and a DataVisualizationDemos update]

Posted: 30 Nov 2009 12:21 PM PST

We shipped the November 2009 release of the Silverlight Toolkit a little over a week ago and it includes a handful of improvements to the Data Visualization assembly . It also adds support for the new Silverlight 4 Beta ! And while we were busy getting...( read more )...(read more)

Silverlight 4 presentation in Montreal (Qc)

Posted: 30 Nov 2009 10:02 AM PST

Don't miss the next Montreal .NET Community meeting which RunAtServer Consulting will be the proud sponsor. Indeed we invited Jesse Liberty , the " Silverlight Geek " from Microsoft Boston, to speak on Silverlight 4 !! This event is scheduled for December...( read more )...(read more)

Using Azure as a Silverlight Streaming replacement

Posted: 30 Nov 2009 09:45 AM PST

Many have inquired if Silverlight Live Streaming had a replacement since the announcement of it being deprecated . The SLS team blog pointed to Azure as a possible solution. Since it doesn't seem like anyone except James has really tried this, I decided...( read more )...(read more)

Building extensible Silverlight applications with MEF

Posted: 30 Nov 2009 08:42 AM PST

At PDC09, Glenn Block delivered a great presentation on building extensible RIAs using the Managed Extensibility Framework ( FT24 from the PDC09 sessions ). Glenn is one of the PMs and face-man for MEF. He's been traveling all around singing the praises...( read more )...(read more)

Building extensible Silverlight applications with MEF

Posted: 30 Nov 2009 08:42 AM PST

At PDC09, Glenn Block delivered a great presentation on building extensible RIAs using the Managed Extensibility Framework ( FT24 from the PDC09 sessions ). Glenn is one of the PMs and face-man for MEF. He's been traveling all around singing the praises Read More......(read more)

Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1

Posted: 30 Nov 2009 10:00 AM PST

Last week we launched the ASP.NET Ajax Library Beta during PDC, oh and we donated it to the CodePlex Foundation under new BSD license (FTW).  As the email volume has been fading away running up to Thanksgiving in the US and everyone at work is recovering from conferences, I took this golden opportunity to sit down and build a small sample with the new library now that we are in Beta. Since the ASP.NET Ajax Library takes care of JSONP requests for me (which enables cross-domain service requests) it is really easy to hit a service like the Twitter Search API which in turn provides me with a JSON result and a callback to trigger functionality which does something with the result. This allows us to build a Twitter Search application that is...(read more)

Balder 0.8.8.0 Release is out

Posted: 30 Nov 2009 03:31 AM PST

Its been a busy month getting all "loose" ends in the Balder project tied up. Hopefully we haven't left anyone out. For this release we've been focusing on bug fixing, cleaning up the APIs and getting better "native" Silverlight...( read more )...(read more)

Silverlight Design Time Assemblies

Posted: 30 Nov 2009 02:07 AM PST

Introduction If you write Silverlight controls, you should consider writing design time assemblies for your controls too, for two simple reasons: developer productivity: try to imagine Silverlight development without tools like Visual Studio or Blend...( read more )...(read more)

Rocky Lhotka is headed to Atlanta

Posted: 29 Nov 2009 05:24 PM PST

URL : http://www.lhotka.net/weblog/HeadingToAtlantaTo... If you're in Atlanta this week, Rocky Lhotka is coming to town for two events: Geek Dinner at 5 Seasons' Brewery in Alpharetta December 1st at 6:30pm. RSVP here . SQL Server Modeling at ALEMUG on...( read more )...(read more)

T4MVC 2.6: MVC 2 Areas support

Posted: 29 Nov 2009 10:51 PM PST

To get the latest build of T4MVC: Go to T4MVC page on CodePlex   One of MVC 2's major new features is the support for breaking up a large application into "Areas". This works by following a structure that looks like: Root folder Models Views Controllers Areas NerdDinner Models Views Controllers Blog Models Views Controllers So basically you still have your top level Models/Views/Controllers folders, and in addition to that you can have an arbitrary number of "Areas", each having their own set of Models/Views/Controllers folders. Starting with MVC 2.6, T4MVC lets you use areas in much the same way it lets you access top level items.  e.g. you can now write: <%= Html.ActionLink("Delete Dinner", MVC.NerdDinner...(read more)

Script# Update - v0.5.5.0

Posted: 29 Nov 2009 10:19 PM PST

The long-awaited event (by some) ... an updated script# build, along with next steps, new channels for Q&A and staying up-to-date via @scriptsharp on twitter... [ Full post continued here... ] Read More......(read more)

PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!

Posted: 27 Nov 2009 10:13 PM PST

I had a great time at my talk  PDC2009 talk, but i was disappointed that I could not demo in both C# and VB… So here is the next best thing: A full play-by-play of the demo, but all in VB!   Enjoy. What you need to get started: Visual Studio...( read more )...(read more)

Silverlight Cream for November 29, 2009 -- #744

Posted: 29 Nov 2009 06:57 PM PST

In this all-submittal Issue: ITLackey , AfricanGeek , Yasser Makram , Rob Houweling , James Bacon , Max Paulousky , Andrea Boschin , Andrew Veresov , Michael Washington , Corey Schuman , Mark Tucker , Fons Sonnemans , Pencho Popadiyn Thanks for all the...( read more )...(read more)

Silverlight Game: Froggy Math

Posted: 29 Nov 2009 06:46 PM PST

" Froggy Math " is a little educational Silverlight game that I've been picking at when I had a free hour here and there for the past several weeks. The goal was to create something for my kids to practice their math facts (which I learned now are called...( read more )...(read more)

PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!

Posted: 27 Nov 2009 10:13 PM PST

I had a great time at my talk  PDC2009 talk, but i was disappointed that I could not demo in both C# and VB… So here is the next best thing: A full play-by-play of the demo, but all in VB!   Enjoy. What you need to get started: Visual Studio Read More......(read more)

Microsoft AJAX CDN – Now with SSL Support

Posted: 29 Nov 2009 05:55 PM PST

Back in September I blogged about the new Microsoft AJAX CDN (Content Delivery Network) service that the ASP.NET team is now providing.  The CDN provides edge caching support for AJAX libraries (including jQuery and ASP.NET AJAX).  The service is available for free, does not require any registration, and can be used for both commercial and non-commercial purposes.  It offers a great way to speed up your external facing web-sites. SSL Support Now Provided One of the features in September that we said was coming (but which was not available at the initial launch) was SSL support for scripts served off of the CDN.  This is necessary for scenarios where you have SSL enabled pages on your site, and you want to reference a script...(read more)

PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!

Posted: 27 Nov 2009 10:13 PM PST

I had a great time at my talk  PDC2009 talk, but i was disappointed that I could not demo in both C# and VB… So here is the next best thing: A full play-by-play of the demo, but all in VB!   Enjoy. What you need to get started: Visual Studio 2010 Beta2 Silverlight 4 Beta (now includes RIA Services ) Completed Solution (in VB) Check out the slides and video   from the talk Starting Off I am starting off with the new Business Application Template that gets installed with RIA Services.  This new template includes: Pattern for page navigation Log\Logout and new user registration support Localizable User settings Shared Code For this demo, I am going to used a customized version of the template.. After you create the project...(read more)

Free Silverlight 4 Event in Tampa – Monday Dec 7th @ 6:15pm

Posted: 29 Nov 2009 03:54 PM PST

Florida has a fantastic developer community with some great people who are a just a blast to share technology with. That's why I am thrilled to announce that I am heading to Tampa on Dec 7th where I will be presenting "What's New in Silverlight 4 Beta...( read more )...(read more)

Sunday, November 29, 2009

Silverlight 4: Sum is Greater than the Parts

Silverlight 4: Sum is Greater than the Parts


Silverlight 4: Sum is Greater than the Parts

Posted: 28 Nov 2009 03:09 PM PST

Now that Silverlight 4 beta has been released there are tons of people trying the new bits, starting to develop applications, and blogging some great samples and ideas. You can check out all of the features from the Silverlight 4 beta Technical Whitepaper...( read more )...(read more)

Sync Framework SP and Object Generator for SQL Server 2008 Change Tracking

Posted: 16 Nov 2009 06:49 PM PST

This project uses T4 templates to generate stored procedures and required syncFx objects for SQL Server 2008 when change tracking is enabled.

Saturday, November 28, 2009

Some food for thought on a Saturday morning

Some food for thought on a Saturday morning


Some food for thought on a Saturday morning

Posted: 28 Nov 2009 03:23 AM PST

This blog post is not about software development. Or maybe it is. I will leave that up for you to decide. On the flight home from Frankfurt last night I was reading D2 , a magazine that comes out every Friday as part of the Norwegian newspaper Dagens...( read more )...(read more)

Silverlight 4 : Crossing Language barriers aka BiDiRTL

Posted: 28 Nov 2009 03:11 AM PST

I have already talked about launch of Silverlight 4 Beta in my last article. We all jumped on new Silverlight 4 Beta bits and I am sure you all must be ready to build next generation web applications. Silverlight 4 ( We all know its in Beta, so I will...( read more )...(read more)

Silverlight Drag and Drop API

Posted: 28 Nov 2009 02:08 AM PST

Introduction Drag and drop is a common UX paradigm and a top requested feature. In Silverlight 4 Beta, we introduced a basic set of API to enable the most common scenario of dragging pictures files and dropping them to Silverlight applications, and we...( read more )...(read more)

How can I filter data virtualized items in WPF?

Posted: 27 Nov 2009 01:36 PM PST

A few months ago, I wrote about a data virtualization solution that combines many of the advantages of two other data virtualization solutions (Paul's and Vincent's). Today's post extends the data virtualization solution in my earlier...( read more )...(read more)

Friday, November 27, 2009

Windows Media Foundation Team Launches New Blog

Windows Media Foundation Team Launches New Blog


Windows Media Foundation Team Launches New Blog

Posted: 27 Nov 2009 02:52 PM PST

The Media Foundation Team at Microsoft has launched a new blog to provide in-depth information about Media Foundation programming, to help get you started with Media Foundation in your own applications, and to get feedback from the developer community.

Download Microsoft SharePoint Server 2010 Beta

Posted: 27 Nov 2009 02:52 PM PST

SharePoint Server 2010 Beta provides an extensible platform to rapidly build solutions using familiar tools such as Visual Studio 2010 and SharePoint Designer 2010.

Sync Framework SP Generator for SQL Server 2008 Change Tracking

Posted: 16 Nov 2009 06:49 PM PST

This project uses T4 templates to generate stored procedures for SQL Server 2008 when change tracking is enabled.

Silverlight 4's Printing Support

Posted: 27 Nov 2009 05:11 AM PST

URL : http://wildermuth.com/downloads/printingfun.zip As i've discussed with a number of my customers (with apologies to Siebrand) I never thought we needed printing. Printing on the Internet has a durable solution especially when it comes to to line...( read more )...(read more)

Five Silverlight 4.0 features you cannot do without

Posted: 27 Nov 2009 12:19 AM PST

Only 4 months have passed since 10 July 2009 - when Silverlight 3.0 has been released - and the last 18th November at the PDC the first beta of Silverlight 4.0 has been launched to the world. In this short time great work has been accomplished by the...( read more )...(read more)

Presenting in Europe Next Week

Posted: 27 Nov 2009 12:33 AM PST

I'm off to Europe next week to do a bunch of technical presentations.  I'm presenting for 5-6 hours in a bunch of different cities, and will be doing talks that cover: ASP.NET 4 and VS 2010, ASP.NET MVC 2, and Silverlight 4. Below are details on the different cities I'm visiting, and how to register to attend the talks: Oslo, Norway - December 1st Stockholm, Sweden – December 2nd Copenhagen, Denmark – December 3rd Brussels, Belgium – December 4th I'll also be attending the BizSpark Camp in Paris on December 8th and will be doing a presentation there as well: Paris, France – December 8th Hope to see some of you at once of these events in person! Scott P.S. In addition to blogging, I'm also now using Twitter for quick updates and to share...(read more)

Silverlight MVP List on Twitter

Posted: 26 Nov 2009 03:40 PM PST

The Silverlight MVP community is notorious at sharing information through blogs and Twitter. I created a new Silverlight MVP Twitter list to make it easier to follow all of the Silverlight MVPs and the evangelists. You can follow the entire group using...( read more )...(read more)

Geek Profiles – Scott Guthrie

Posted: 26 Nov 2009 01:05 PM PST

Part of what Tim and I do is to provide meaningful connections between the dev team and the community. Today I'm happy to launch a new series of Geek Profiles, highlighting many of the folks who design and implement Silverlight.  These are not intended...( read more )...(read more)

Thursday, November 26, 2009

A look at the Printing API in Silverlight 4

A look at the Printing API in Silverlight 4


A look at the Printing API in Silverlight 4

Posted: 26 Nov 2009 01:05 AM PST

By Corey SchumaWith the addition of the much anticipated Printing API, Silverlight continues to round out its feature set. Although beta, it's very flexible enabling you to print what you see on screen, selected portions of the UI, custom "print-friendly...( read more )...(read more)

Silverlight 4 Text Trimming

Posted: 25 Nov 2009 07:44 PM PST

Another feature which was in WPF but not in Silverlight 3… TextTrimming is now available in Silverlight 4! With previous version of Silverlight you could try some workaround (calculate the width of your text depending on the font size and family), but...( read more )...(read more)

Silverlight and RIA Services: Implementing Search

Posted: 25 Nov 2009 11:11 AM PST

Some of you likely noticed that my PDC09 demo included a stubbed out Search function that I didn't really get to walkthrough during the talk.   I thought I'd do a blog post showing how it is done. To get started you need: Visual Studio 2010...( read more )...(read more)

Silverlight and RIA Services: Implementing Search

Posted: 25 Nov 2009 11:11 AM PST

Some of you likely noticed that my PDC09 demo included a stubbed out Search function that I didn't really get to walkthrough during the talk.   I thought I'd do a blog post showing how it is done. To get started you need: Visual Studio 2010 Read More......(read more)

Silverlight and RIA Services: Implementing Search

Posted: 25 Nov 2009 11:11 AM PST

Some of you likely noticed that my PDC09 demo included a stubbed out Search function that I didn't really get to walkthrough during the talk.   I thought I'd do a blog post showing how it is done. To get started you need: Visual Studio 2010 Beta 2 Silverlight 4 Beta  (which includes RIA Services) You can download the completed solution as well.   and be sure to check out the full talk .     First let's write a new method on the DomainService to return the search results.  In this case I want to return any Plates who's name matches (grouped by Restaurant)  and any Restaurant who's name matches.  public IQueryable < Restaurant > SearchRestaurants( string term) { //Find all plates that match, grouped...(read more)

Wednesday, November 25, 2009

Implicit Styles in Silverlight 4

Implicit Styles in Silverlight 4


Implicit Styles in Silverlight 4

Posted: 23 Nov 2009 09:14 PM PST

Introduction Only three months after the release of the latest official version of Silverlight 3, a new beta version – Silverlight 4 is already a fact. There are a lot of new things, which deserve to be mentioned, such as Rich Text, drop target, webcam...( read more )...(read more)

State, Element, and Storyboard Pickers

Posted: 25 Nov 2009 12:43 AM PST

Learn how to extend the custom value pickers that make selecting a state, element, or storyboard name easier to your own properties....( read more )...(read more)

Silverlight 4 and command line execution

Posted: 24 Nov 2009 11:47 PM PST

In my last post on out of browser we showed how easy and powerful it is , all be it a bit of a step back in the development time machine, to execute native windows applications using the new com support in silverlight 4. The next logical question arises...( read more )...(read more)

T4MVC now has a real home and a dedicated forum!

Posted: 25 Nov 2009 12:09 AM PST

Up until now, most things related to T4MVC were happening through my various blog posts about it.  And while that was sort of working ok for a while, it was also less than ideal for a couple reasons. First, there was no single place to go to in order to get information about it.  You'd basically have to go through the various posts that describe the various features as they were added.  And as the number of posts grew, so did the pain involved in doing that. The second issue is that there was no good place to discuss it, ask questions and report issues.  So all of those things were mostly just happening organically as comments in my various posts, which really doesn't work so well.  Blog Post comments don't support threading...(read more)

Ian Burt on performance issues with RIA services and a bit more

Posted: 24 Nov 2009 11:16 PM PST

Building N-Tier business applications with technologies currently in a CTP version (facing WCF RIA Services, formerly .NET RIA Services) could be not the easiest job. One of our recent articles was on this topic ( Building N-Tier business applications...( read more )...(read more)

Web Deployment Painkillers: VS 2010 & MS Deploy

Posted: 24 Nov 2009 11:12 PM PST

Last week I did a talk at the PDC 2009 and the talk is now available to view online live at www.microsoftpdc.com/Sessions/FT56 The abstract of the talk was " Learn about next generation of ASP.NET Web Deployment with tips & guidance on how you can reuse and extend the technologies available with VS 2010 to build a hassle free web deployment solution for your team. See how to use VS 2010 and MS Deploy to assist with with creating virtual directories in an automated fashion, setting up app pools correctly, uploading only the changed content, replicating servers in web farms, modifying Web.config files for testing/staging/pre-Prod/UAT/Production environments, setting up team build environment or deploying databases." Hope you will enjoy it...(read more)

Silverlight Cream for November 24, 2009 - 2 -- #743

Posted: 24 Nov 2009 09:45 PM PST

In this Issue: African Geek , Alan Mendelevich , Jeff Wilcox , CorrinaB , Tim Heuer , Jeff Handley , Timmy Kokke , Cameron Albert , Antoni Dol , and Fredrik Normén . Shoutouts: Check out the WCF RIA Services Code Gallery on MSDN ... lots of good resources...( read more )...(read more)

Handling Network Outage in Silverlight with Caliburn

Posted: 24 Nov 2009 08:11 PM PST

If you are building an OOB application with Silverlight that relies on web services, you may have some interesting challenges on you hands.  You probably want to have some fallback for certain operations when the network is down.  You can do...( read more )...(read more)

Anti-XSS Library v3.1: Find, Fix, and Verify Errors

Posted: 24 Nov 2009 05:31 PM PST

Anil Revuru (RV), Senior Software Developer from Microsoft Information Security, demonstrates the new features of the Anti-XSS Library v3.1. These include HTML Sanitization, which provides new methods to the Anti-XSS class to strip malicious characters or scripts from HTML and returns safe HTML.

Registration Open: Attend SANS AppSec 2010 Training

Posted: 24 Nov 2009 05:31 PM PST

Attend SANS AppSec 2010 training with 7 different courses in San Francisco, January 29 through February 3, including "Developer 320: Introduction to the Microsoft Security Development Lifecycle (SDL)." SANS is an SDL Pro Network member.

Windows System Colour Theme for Silverlight

Posted: 24 Nov 2009 04:18 PM PST

This is something that I played with on a basic level a while ago but Corrina has just put together a post with a new downloadable theme around high-contrast themes for Silverlight – here's the link; Windows System Colour Themes for Silverlight...( read...( read more )...(read more)

Tuesday, November 24, 2009

PollingDuplex scaling in Windows Azure

PollingDuplex scaling in Windows Azure


PollingDuplex scaling in Windows Azure

Posted: 24 Nov 2009 11:58 AM PST

One of the great sessions at this year's PDC talked about a collaboration between Invensys and Microsoft's DPE team to build a solution that can deliver energy pricing information to a variety of clients, using a duplex message pattern. Effectively Invensys...( read more )...(read more)

Silverlight Cream for November 24, 2009 -- #742

Posted: 24 Nov 2009 08:38 AM PST

In this Issue: Rene Schulte , Jason Harper , Brad Abrams , John Papa , Jeremy Likness , Jeff Wilcox , Fredrik Normén , Tim Heuer , Shawn Wildermuth , and Andrej Tozon . Shoutouts: Ward Bell has a PDF up of PDC 2009 Session Links -- thanks Ward! Tim Heuer...( read more )...(read more)

Tim Sneath Interview on Silverlight 4 and WPF

Posted: 24 Nov 2009 08:34 AM PST

I was lucky enough at PDC 09 to run into (dr) Tim Sneath and ask him about WPF and the Silverlight continuum in the time of Silverlight 4. Go out to facebook and watch the interview. http://www.facebook.com/video/video.php?v=190747957550 Over the next...( read more )...(read more)

SQL Server Compact Bulk Insert Library

Posted: 06 Nov 2009 05:59 PM PST

.NET Library for loading data fast (doing bulk inserts) into a SQL Server Compact database file. Attempts to mimic the SQLClient SqlBulkCopy API.

Sharing isn't easy for anyone [Tricks for sharing the same XAML files across Silverlight and WPF]

Posted: 23 Nov 2009 11:09 PM PST

I casually mentioned two tricks for sharing the same XAML across Silverlight and WPF in the notes of a post a couple weeks ago. I used both techniques in my DataVisualizationDemos project (which compiles for Silverlight and WPF from the same source code...( read more )...(read more)

ASP.NET 4.0 ScriptManager Improvements

Posted: 23 Nov 2009 09:51 PM PST

.NET Framework 4 Beta 2 has been out for a little while now. There are some subtle improvements to the ScriptManager control in ASP.NET 4.0 that few have picked up on yet. Allow me to introduce you to them! First, let me say that this is strictly about...( read more ) Read More......(read more)

What’s New in Silverlight 4 – Download and Run!

Posted: 23 Nov 2009 09:02 PM PST

Last week I posted about the great new materials on Channel 9's site and on Silverlight.net for Silverlight 4. I had several people ask me about a downloadable version of my "What's new in Silverlight 4" whitepaper that is posted on Channel 9's site in...( read more )...(read more)

Silverlight Podcast: Expression Encoder 3

Posted: 23 Nov 2009 05:58 PM PST

Our second Silverlight podcast features an interview with James Clarke of the Expression Encoder team. Learn about how Encoder works, screen capture and its object model. There are two versions: Enhanced AAC file for iPod: click here Standard MP3 file...( read more )...(read more)

TechEd Europe Demo Session - Face-Lifting MFC Applications on Windows 7

Posted: 23 Nov 2009 12:40 PM PST

Hello,

My name is Damien Watkins, and I am a Program Manager on the Visual C++ team. Today, I thought I would post the "overview script" for my TechEd Europe session – so those who could not attend can try it out for themselves at home. My talk was about the new MFC features we have added in Visual Studio 2010.

Just before we get started, I would like to point out that Pat Brenner has been doing some Channel 9 videos on the new MFC functionality too, you can find the first three videos here (and keep your eyes open for more in the future):

1.       Pat Brenner: Visual Studio 2010 - MFC and Windows 7 (a 25 minute interview on the rationale for and design of the new MFC features)

2.       MFC: Implementing handlers for preview, thumbnail and search filtering (a 3 minute "How To" style video)

3.       MFC: Integrating your application with the Windows Restart Manager (a 5 minute "How To" style video)

Creating my Solution/Application

To begin, you could run Visual Studio 2010 (VS2010) as an administrator.  This is needed to register the "File Type Handlers" for providing Preview, Search and Thumbnail support for your document type. Alternatively, you could run VS2010 as a normal user and run the command to register the file type handlers in an elevated command prompt.

After starting VS2010 (and executing it as an Administrator) you will create a new MFC Application (File->New->Project or CONTROL+SHIFT+n). In the New Project Wizard you will select MFC Application and enter a name for the Project. In my example below I entered "VCBlogDemo" but you can use anything you like however, if you use the same name as me it will be easier to follow the instructions below when I refer to specific classes, methods, etc. I then click "OK". As an aside, unless I say otherwise I always select the defaults on any screen.

Now work your way through the MFC Application Wizard dialogs, selecting/enabling these features as you go:

1.       On the "Overview" page, just click "Next".

2.       On the "Application Type" page, set the Project Style to Office (I will show some Ribbon features further on and so I want a Ribbon based UI) and then click "Next".

3.       On the "Compound Document Support" page, just click "Next".

4.       On the Document Template Properties page:

·         Add a file extension, I entered demo-ms

·         And I added support for Preview, Thumbnail and Search handler support by clicking the various buttons once they were enabled.

·         Check the screenshot you have the same settings:

·         Then click "Next".

5.       On the "Database Support" page, just click "Next".

6.       On the "User Interface Features" page, just click "Next".

7.       On the "Advanced Features", please note that "Support Restart Manager" is already selected, and then just click "Next".

8.       On the "Generated Classes" page:

·         Change the Base Class for the CVCBlogDemoView class to CEditView. The reason for doing this is that the default implementation of this class can be used to highlight the Preview, Search and Thumbnail functionality without the need for the developer to write any additional code. Your screen should now look like this:

·         Then click Finish

Once the Wizard completes, as a quick sanity check, I changed my "Solution Configuration" to be "Release", build the solution (F7) and started the application without debugging (CONTROL+F5) – I essentially just closed it after it I saw it running. Then I returned to VS2010.

Configuring Restart Manger and Auto-Save

By default, the auto save interval is 5 minutes, but rather than have to wait five minutes after starting the application to demonstrate this functionality I am going to set the interval to 15 seconds. I do this by first finding the command that enables Restart Manger support in the CVCBlogDemoApp constructor and then by adding a line immediately after it. The Constructor will then have these two lines in:

 

m_dwRestartManagerSupportFlags = AFX_RESTARTMANAGER_SUPPORT_ALL_ASPECTS;

m_nAutosaveInterval = 15000; // add this line after the preceding line

Editing the Ribbon

You can then change to the Resource View and go to the VCBlogDemo project and expand VCBlogDemo.rc. Then expand the Ribbon resources and double click on the IDR_RIBBON resource. Next I dragged a Panel from the Toolbox and plac it on the ribbon. I changed the caption of the panel to "Restart". I then dragged a Button from the Toolbox to the Restart Panel. I then changed the button's ID to ID_CRASHME and its Caption to CrashMe.

Return of the MFC Class Wizard!

Now you need to add events handlers for the "CrashMe" button in the ribbon. At this point it becomes time to welcome back an old friend, the Class Wizard. Hit CONTROL-SHIFT-X (different key binding to the original) and the Wizard appears. It is hard to imagine a more commonly requested feature than the return of the Wizard – we really hope you enjoy using it!

Now change the "Class name" field to CVCBlogDemoApp and on the Commands Tab enter ID_CRASHME in the search box. The Class Wizard screen looks like this:

Next, selected COMMAND and clicked on "Add Handler" and then select UPDATE_COMMAND_UI and clicked on "Add Handler".  The COMMAND handler will crash our application, so we can see the Restart Manager functionality at work. The UPDATE_COMMAND handler will disable the "CrashMe" button until our application has been running for more than 1 minute so Windows Restart Manger machinery is enabled (and so the auto save timeout has expired at least once.) Now use the "Edit Code" button to add the following code (of course, you can add whatever logic you like to enable/disable the button and terminate the application – the code below is the simplest and most constrained I could think of – however it is not an example of good coding practices):

Demonstrating our application

So now rebuild the Solution and start the application (remember - it should be built for "Release".) When you start the application without debugging (CONTROL+F5) you will notice that the "CrashMe" button is initially disabled. Next I will open two more documents (keying CONTROL-N twice will do).

1.       In document one I will type "This document is saved" and click on the save icon and save the documents in the Documents folder.

2.       In document two I will type "This document is not saved" (and I will NOT save it).

3.       In document three I will type "This sentence is saved" and click on the save icon and save the documents in the Documents folder. Next I will type on the second line "This sentence is not saved" (and I will NOT save it).

Windows 7 Taskbar

To allow the auto-save functionality time to work, at this point you can hover over the application's icon in the new Windows 7 Taskbar. Notice how each document has a separate tab (although the writing is very small in this example) and you can see a real time view of the document – for example notice the flashing cursor in the active document (whichever one that happens to be.)

 

 

Demonstrating the Restart Manager

Now we can crash the application by clicking on the enabled "CrashMe" button. After taking a few seconds to restart, you get a nice example of our new CTaskDialog and the option to auto-recover our work.

I recover everything by clicking on the "Recover the auto-saved documents" option.  Now I hover on the application icon in the task bar and, when the document previews appear, I start closing the documents by clicking on the red X. You will notice how a document that has been saved is just closed, a document that has already been saved  but subsequently has been updated will  have the "Save" dialog enabled and a document that has never been saved will have the "Save As" dialog enabled. 

Explorer Interaction

Finally, I start Explorer in the documents folder, type "saved" in the Search field and select one of the demo-ms files and thus we can see the Icon, Preview and Search functionality.

Support for High DPI

For those who have a few minutes, at this stage you can change the resolution of your screen and either restart or logoff (depending on your OS requirements) and see how MFC has added support for High DPI displays.

Summary

As you can see, using the new Windows functionality from MFC is very simple. Add to this the return of the Class Wizard and the addition of the Ribbon Editor and we hope that MFC developers will be excited about the upcoming Visual Studio 2010 release.

One other point, you may notice is that the Ribbon Designer looks a lot like the BCGSoft designer. Again, as with the MFC extensions in VS2008 SP1 (a.k.a. the MFC Feature Pack) we got some assistance from BCGSoft on some of the implementation of the new MFC Features. So that was the overview script of my TechEd Europe talk.

Thanks,

Damien

 

 

Program Manager Position on the ASP.NET PM team

Posted: 23 Nov 2009 02:14 PM PST

Are you interested in making a change? Do you want to join a fast moving team inside of Microsoft and help drive the future features in ASP.NET?We have a program manager position on the ASP.NET team which is currently available. You can access the listing here: ASP.NET PM Position . We are looking for someone that is interested in driving the data strategy on our team which includes partnering with LINQ and SQL teams, is into web standards around HTML, CSS and JavaScript and making ASP.NET work better with these standards and much much more. Please check out the listing if you are interested. Read More......(read more)