The Now Markup Extension

This is a small and simple markup extension that displays the current date and time in your XAML. Of course you could do this with databinding onto some property or method within a class. However, doing it this way makes for cleaner code I think and it also updates in real time.

The code can be found here, and the XAML here. Below is an example of the Now markup extension in use.

That’s all Folks…

 

Advertisements

~ by Intelligence4 on April 18, 2011.

 
%d bloggers like this: