Tag Archives: MEF

SCREENCAST: Improving perceived WPF app startup performance with MEF and a Splash Screen

digg_url = “http://blogs.msdn.com/devkeydet/archive/2010/04/05/screencast-improving-perceived-wpf-app-startup-performance-with-mef-and-a-splash-screen.aspx”;digg_title = “SCREENCAST: Improving perceived WPF app startup performance with MEF and a Splash Screen”;digg_bgcolor = “#555555”;digg_skin = “normal”;http://digg.com/tools/diggthis.jsdigg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;

I’ve been meaning to record this screencast for a LONG time.  Well, I have a presentation on MEF tomorrow.  I was originally planning on demonstrating this sample, but realized that I won’t have enough time.  However, I needed to be able to point the audience to an explanation of this sample as a follow on.  Nothing like a forcing function to get you to do something you’ve been planning on for ages;)!

In this screencast, I highlight some tips and tricks for improving perceived startup performance of Windows Presentation Foundation (WPF) applications using the Managed Extensibility Framework (MEF) and a Splash Screen.  The walkthrough focuses on using the .NET Framework 4.0.  However, MEF is available for WPF 3.5 SP1 as well at http://mef.codeplex.com

Direct link to Ch. 9 post:

https://channel9.msdn.com/posts/keydet/Improving-perceived-WPF-app-startup-performance-with-MEF-and-a-Splash-Screen/

Sample download:

http://tinyurl.com/WpfMefStartupTipsTricks

Improving perceived WPF app startup performance with MEF and a Splash Screen

digg_url = “http://blogs.msdn.com/devkeydet/archive/2010/01/29/improving-perceived-wpf-app-startup-performance-with-mef-and-a-splash-screen.aspx”;digg_title = “Improving perceived WPF app startup performance with MEF and a Splash Screen”;digg_bgcolor = “#555555”;digg_skin = “normal”;http://digg.com/tools/diggthis.jsdigg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;

UPDATE (4/5/2010): I uploaded a newer version with a few minor tweaks.  I finally created a screencast for this sample:

http://tinyurl.com/WpfMefStartupScreencast

UPDATE (2/27/2010): I uploaded a newer version of the sample.  I fixed some bugs and added support for loading a ResourceDictionary using MEF.  I will be recording a Ch. 9 screencast soon.

I keep on finding all sorts of fun and interesting uses for MEF.  I just threw together a sample for a customer showing how to use a splash screen + MEF to follow the “Make the application main window appear as soon as the user double-click on the application’s icon, when possible perform do all other initialization after.” principle describe here:

http://blogs.msdn.com/jgoldb/archive/2007/10/10/improving-wpf-applications-startup-time.aspx

I plan on explaining the sample in a coming blog post.  However, I wanted to share the sample without explanation as soon as possible.  Get it here:

http://tinyurl.com/WpfMefStartupTipsTricks

I used Visual Studio 2010 beta 2 / WPF4 for this.