DarioSantarelli.Blog("UgiDotNet");

<sharing mode=”On” users=”*” />
posts - 176, comments - 105, trackbacks - 3

My Links

News


This is my personal blog. These postings are provided "AS IS" with no warranties, and confer no rights.




Tag Cloud

Archives

Post Categories

My English Blog

October 2009 Blog Posts

[WPF] Un “generic” command

Analizzando diverse soluzioni WPF che sfruttano l’architettura M-V-VM, mi è saltata all’occhio una strategia di implementazione dell’interfaccia ICommand semplice e potente a mio modo di vedere. Andiamo direttamente al codice: public class GenericCommand<T> : ICommand {   public Predicate<T> CanExecuteDelegate { get; set; }   public Action<T> ExecuteDelegate { get; set; }          public bool CanExecute(object parameter)   {     if (CanExecuteDelegate...

posted @ Saturday, October 17, 2009 11:41 AM | Feedback (0) | Filed Under [ WPF ]

Powered by:
Powered By Subtext Powered By ASP.NET