Writing an asynchronous RelayCommand implementing ICommand

Read the full article here If you are familiar with MVVM, then you are already familiar with relay commands. We use relay commands to map a method with the ICommand raised from a control. Below is the typical code snippet you may have seen a lot of time. The class below is pretty simple; it…


Refer azure runbook activity output in PowerShell expression

When you are creating a runbook with multiple activities, often you will encounter the need of referring an activity output in another activity. Thankfully, all the activities in the runbook can refer another activity in the parameter pane. However, when you have a piece of powershell script which needs to use the same, you don’t…


Working around the bug “Instead Of Trigger on View returns no output”

This post is to help developers implement a workaround on the bug mentioned in https://connect.microsoft.com/SQLServer/feedback/details/427666/instead-trigger-return-zero-number-into-output-identity Read my post at http://microsoftprogrammers.jebarson.com/bug-instead-of-trigger-on-view-returns-no-output/ which explains one of the work around which may come handy to you


Get text from RichTextBlockOverflow Control

RichTextBlockOverflow is one of my favorite control. As we all know, it allows you to render the overflown text from a RichTextBlock. Virtually you can render the overflow text to any number of level. Below is how a the overflow happens when you got one RichTextBlock and two RichTextBlockOverflow to render the overflown text. Read…


A poor man’s implementation of row level security in SQL

Often I have come across situations where the enterprise customers want to restrict data availability to their employees / IT not only from the application but also at the database level. Government / Public sectors have a common requirement that they don’t want everybody at their IT team to be able to query everybody’s data….


Complete XAML Solution For SelectAll In Datagrid

Over the period of time lot of asks and solutions were made for selectall selector for DataGrid. However, I failed to see a solution which is completely built on XAML. When my friend approached me, I thought that I will write my own. The idea is to have a template column with a separate definition for…


Pin / Unpin Control Template For Toggle Button

I was looking for a template which will help put a pin / unpin button using toggle button. Antoni Dol who has already shared a fantastic template and I had to make few changes with respective to the pinned style as I didn’t like the original one. Read More


How To Check If Cookies Are Enabled In Windows Phone

Windows Phone as of today doesn’t provide a property or direct API call which will help you identify whether the user has chosen to accept cookies or not. However, we can identify this pretty neatly by trying to get the cookie collection. So to achieve this, we are going to get the cookie collection for a…


DIY Home Security Using Kinect, Azure, Windows Phone and Windows 8

Most the people who were in the TechEd 2012 India would have witnessed the cool demo by me and Abhijit Jana made on the opening Keynotes of the event. And now we would like to share how this solution was developed so that you can also build your own. Before we could pitch in, let…


Byte Array To BitmapImage Converter & IRandomAccessStream Implementation For Windows 8 Metro

Metro don’t support the same converter which I wrote earlier for the reason that BitmapImage can no more read from Stream but only from IRandomAccessStream. Well since I have to anyway come up with a solution, I wrote my own class. To start with, IRandomAccessStream will be generated using Metro API only when you are…