Author Archive

DoubleClick Trigger for DataGrid in Silverlight and C#

Due to lack of double click event in Silverlight a custom implementation is needed. The purpose of adding Trigger/Behavior has two main advantages. First for the missing Triggers of Silverlilght controls and secondly these allow developers to interact with controls without writing any code in any future projects especially in case of MVVM pattern. Double

Use CTE query in WHERE clause

Introduction This post shows how to use Common Table Expressions (CTE ) in WHERE CLAUSE of a query. Purpose We have hierarchy of a category up to nth level and we have to apply any action i.e. update/delete for entire hierarchy. For this we use CTE query to get entire hierarchy but we can’t use

Select Right Programming Model with ASP.NET

Decide if ASP.NET Web Forms, ASP.NET MVC, or ASP.NET Web Pages is right for you. Asp.Net is flexible web platform that enables you to build great web applications using three different programming models. Those models are ASP.NET Web Forms, All three of these programming models are fully supported options that are used by millions of

A Quick Intro to MVVM

A quick view to Model–View–X  Paradigm Model-View-Controller (MVC) – 1979 Model-View-Presenter (MVP) Presentation Model (PM) by Martin Fowler – 2004 Model-View-ViewModel by John Gossman – 2005 Prism 1.0 : Composite Application Guidance for WPF – Jul 2008 Prism 2.0 : Composite Application Guidance for WPF/Silverlight – Feb 2009 Data Binding in WPF and Silverlight ž