Model to Model-Presentation Automapper

Posted on April 6th, 2011 in ASP.NET MVC | No Comments »

That’s what I was looking for:

http://automapper.codeplex.com/

it allows that: Using AutoMapper to map view models in ASP.NET MVC

For a little more theory about the subject, it’s here.

Now, I just have to use it!

Extend ASP.NET MVC

Posted on April 6th, 2011 in ASP.NET MVC | No Comments »

Interesting article about ASP.NET extensibility. Read here.

MVC architecture for Javascript

Posted on April 4th, 2011 in Javascript | No Comments »

Interesting article, could be useful for some very big apps in javascript…

Validate credit card with Javascript

Posted on March 30th, 2011 in Javascript | No Comments »

That can do it:

Code

jQuery validation plugin 1.8 released

Posted on March 30th, 2011 in jQuery | No Comments »

All the details here.

DependencyProperty value change notification

Posted on December 9th, 2010 in WPF | No Comments »

In order to get notified when a dependency property value changes, you can use the DependencyPropertyDescriptor.AddValueChanged function to register your own listener.

A simple example that displays the width of the window in a label:


public Window1()
{
InitializeComponent();

DependencyPropertyDescriptor widthDesc = DependencyPropertyDescriptor.FromProperty(Window.WidthProperty, typeof(Window));

if (widthDesc != null)
{
widthDesc.AddValueChanged(this, this.OnValueChanged);
}
}

private void OnValueChanged(object sender, EventArgs args)
{
txtLabel.Text = this.Width.ToString();
}