background preloader

Caliburn.Micro

Facebook Twitter

Event Aggregator « Sony Arouje Blog. Introduction This post gives some brief introduction to develop Silverlight applications using Caliburn Micro which gives the basic features are: BootStrapping Conventions to write ViewModels Event Aggregation Action Message Once you got the above basic ideas, it’s very easy to develop scalable applications in Silverlight.

Event Aggregator « Sony Arouje Blog

You can download the latest Caliburn Micro source from CodePlex. When MVVM pattern introduced into my Silverlight development, initially it’s not digesting for me. I hope every one who reads this post has some idea of MVVM pattern. How the View and View Model’s will communicate? Caliburn Micro uses conventions to bind View and View Model’s, I feel the conventions are better than wiring through code or attributes. There are two approach in MVVM model, Code first and View first. Caliburn Micro In Action Let’s do some small application in Silverlight using Caliburn Micro. I am going to create a user control to display the details of individual customer. Convention 1. Caliburn.Micro Soup to Nuts Part 8–The EventAggregator. In Caliburn.Micro we have a series of supporting services for building presentation tiers.

Caliburn.Micro Soup to Nuts Part 8–The EventAggregator

Among them is the EventAggregator, a service which supports in-process publish/subscribe. There are various implementations of this pattern available in other frameworks, but I think you’ll find that Caliburn.Micro’s implementation sports the cleanest API and the richest set of features. Let’s start by having a look at the IEventAggregator interface: public interface IEventAggregator { void Subscribe(object instance); void Unsubscribe(object instance); void Publish(object message, Action<System.Action> marshal = null); } public interface IEventAggregator { void Subscribe(object instance); void Unsubscribe(object instance); void Publish(object message, Action<System.Action> marshal = null); } Below we’ll dig into how the default implementation of this interface (EventAggregator) works.

Subscribe With the Caliburn.Micro EventAggregator we don’t actually leverage events under the covers. AnsonSmith/Caliburn.Micro-EventAggregator-Demo. Mindscape Blog » Blog Archive » Caliburn Micro Part 1: Getting Started. A few days ago I blogged about our new Dashboard sample included in WPF Elements.

Mindscape Blog » Blog Archive » Caliburn Micro Part 1: Getting Started

The sample demonstrates how to create a sales dashboard using a few of our WPF controls like the Data Grid, Time Explorer and Charts. It was built with the help of the Caliburn Micro framework to give it a robust MVVM architecture. In this blog post I’ll walk you through a simple tutorial for getting started with using Caliburn Micro in a WPF application. This is just part 1 in a series I will be writing so I hope you’ll subscribe and follow along with me as we build up to a useful application. Step 1: Getting Started Caliburn Micro targets .NET framework 4.0, so you’ll need Visual Studio 2010 to create the application. Step 2: The View Model Caliburn Micro promotes a View-Model-First approach, so the next step is to add a class to represent the view model.

The first thing to notice here is the name of the class. Step 3: The View Step 4: The Bootstrapper Caliburn Micro has 2 different bootstrappers available.