domingo, 31 de octubre de 2010

Using PRISM, WCF Ria Services and MVVM together

In this post, I will introduce the usage of prism within WCF Ria Services and the pattern of design Model-View-ViewModel in a few steps.

viernes, 29 de octubre de 2010

Splash Screen in Silverlight

In my last personal project, I had to modify the splash screen silverlight in order to show a custom loading page instead of the silverlight one:

There are a lot of information in the web in order to do this, but not many of them gathered the information to explain some features that I needed: full screen, animations, logic inside this screen. I am going to try to gather all this information in this post.

lunes, 25 de octubre de 2010

Watchdog Abstract

I have designed a WatchDog abstract class with a common behaviour in order to adapt it to manage any program, instance, thread, web service, window service or whatever.

viernes, 15 de octubre de 2010

Apply permissions to actions in ASP MVC

I have created a decorator named “AuthorizeAttribute” for actions in order to check roles and permissions of the user. The behavior is exactly the same that the “AuthorizeAttribute” decorator from ASP MVC assemblies, this is used to check whether an user is granted to use a specific functionality if he/she has enough permissions and the right role.

Bind events within Resource Dictionary to ViewModel using Commanding

Firstly, you need to add a reference to the MVVM Light DLLs. You need two: GalaSoft.MvvmLight.dll and GalaSoft.MvvmLight.Extras.dll. In addition, you need the System.Windows.Interactivity.dll which contains the base code for all behaviors. Then, add the namespace in the resource dictionary: