Displaying user Messages, Errors and Dialogs from a ViewModel using a Service – Part 2

Tuesday, December 18, 2012

Displaying user Messages, Errors and Dialogs from a ViewModel using a Service – Part 1In my previous post, I've discussed a bit about using the MVVM pattern and how to display a message or opening a dialog from within the view-model. As part of the discussion, I've shown a possible way for displaying Messages, Errors and even Dialog or Popups. In this post I would like to provide more details about the implementation of the Dialog part.  Recall previous post, we have the following two methods of the user interaction service:  bool? ShowDialog<TConductor>(string title) where TConductor : IDialogConductor;  bool? ShowDialog<TConductor, TParameters>(string title, TParameters parameters) where...
no comments

My SDP Session About MVVM + MEF

Tuesday, March 15, 2011

Thank you to all of you who participated in my SDP session "Architecting a Smart Client with MEF and MVVM" today at Crowne Plaza Hotel, Tel Aviv. I really hope that you enjoyed it and learned something new about MVVM and MEF. it was delightful. Feel free to download the Power Point presentation from here, and the source code from here. Also here is a small souvenir for remembering this session. Hope to see you soon in the near future, Tomer ShamamCodeProject
one comment

Blendability Part IV – Design Time Support for MEF

Wednesday, February 9, 2011

In my previous post I've discussed the usage of MEF with the famous MVVM pattern, and demonstrated the usage of my Import markup-extension, and how it can replace the View Model Locator with an elegant syntax. In this post I would like to reveal and discuss the implementation of the Import markup-extension. Let's begin with a short story. Say that you're building an application for controlling a robot. The robot lives happily in a 2D surface, and can be move freely in between the surface's walls. To visualize both the robot and the surface parts you've created two parts: A Robot...

Blendability Part III – View Model Locator Replacement using MEF

Wednesday, January 19, 2011

Everybody loves MEF! Don't you? I think MEF is one of the best things happened to the latest .NET Framework 4. Just in case that you don't know what I'm talking about, I urge you to start reading about MEF in my colleague, Bnaya Eshet, blog. He has great MEF tutorial for beginners. So why am I writing about MEF in this WPF related post anyway? Well MEF is a great framework for extensibility and object composition, also it can be used as a DI container, declaratively and imperatively. With my experience in architecting several WPF...

Prism 4 Release

Saturday, November 13, 2010

Prism 4 November 2010 has been released yesterday by Karl Shifflett. This version of Prism 4 targets: .NET Framework 4.0 Guidance around the MVVM pattern Navigation Managed Extensibility Framework (MEF) You can read more about it here, and download it from here. Enjoy.
no comments

SDP – WPF 4, MVVM, MEF and Friends

Sunday, December 27, 2009

Tomorrow, as part of the SDP conference, I’m having a whole day session dedicated to WPF 4 and LOB applications. What’s in there for you: Short intro to WPF Goodies in WPF 4 Building a Smart Client using WPF 4 Developing Composite Applications using Prism 2 In addition to all of this great stuff, Bnaya Eshet, my colleague at Sela will talk about MEF and how it’s related to WPF and LOB application. I’ll be more than happy to see you there.
no comments

Session – Building Extensible Rich Internet Applications with the Managed Extensibility Framework

Thursday, November 19, 2009

In this great session, Glenn Block and my collegue Ariel Ben Horesh have talked about Managed Extensibility Framework for Silverlight 4 for building customizable applications that can easily be extended by third parties. Whether you are building an extensible data grid, a custom rules engine, a pluggable editor, or a composite application such as a pluggable CRM system, you want to learn about MEF. They explained how to use MEF to decouple applications into more maintainable the application into dynamically deployable chunks that download on-demand. The managed extensibility framework (MEF) is a new library in .NET 4.0 and...

WPF + MEF = Declarative Composite UI

Tuesday, August 11, 2009

I’ve been playing around with MEF lately and I have to say that it has a great potential for building Composite UIs. One of the sample applications arrived with MEF Preview 6 (called MEFLook), demonstrates how to implement kind of Outlook composite application based on WPF. The interesting part of this application is that views can be imported into the main window as dynamic parts, simply by decorating them with the MEF Export attribute.<Window x:Class="MeflookSample.MeflookShell" ...> <DockPanel Name="dockPanel"> ... </DockPanel> </Window> public partial class MeflookShell : System.Windows.Window { ...