MVC custom validator with client side validation

I wanted to have a reusable email validator since there have been a few cases already where I needed one. Previously I just used the RegularExpressionAttribute but that’s verbose for email. So, without thinking much, I created an attribute that derived from RegularExpressionAttribute and supplied it with a regex I used – that turned out to be a surprise. The server side validat…

By on (tags: mvc, categories: code)

WPF Caching visual elements for better performance

More precisely how can we cache UI elements, since the property I’m going to describe is located at UIElement class, to improve the performance of the WPF control. Recently I had to implement a custom control in WPF. The goal was to display a list of some processes with steps in a Gantt chart. I decided the control will be based on a set of Grid panels where each cell indicates…

By Mirek on (tags: BitmapCache, CacheMode, custom controls, Gantt, WPF, categories: architecture)

dotPeek is out

Remember .net reflector?   That was a great and free tool, but then RedGate happened and they began to charge money for it. I mean don’t get me wrong, it’s still great, though, it’s not the same. Luckily jet brains recognized the ‘issue’ and after a year long (or something around that) beta period, they released the first version of dotPeek. It’s free, comfortable to use a…

By on (tags: None, categories: tools)