Home / Archive by category 'Programming'

| RSS

Style Silverlight ScrollViewer With A New ControlTemplate

In an earlier post I showed you how to add ScrollViewer to Panels. In this post I will show you how to change the look of  the ScrollViewer using Expression Blend. I will work with the same example where I placed  ScrollViewer for a StackPanel. Here is the XAML I will use with a screenshot [...]

[ More ] July 7th, 2009 | 1 Comment | Posted in Programming |

Scrolling In Silverlight Panels

Scrolling is a very basic User Interface feature which allows you to navigate vertically or horizontally the content which may take up more than available area. In Silverlight scrolling is not available by default for any of the panels. But it can easily be made available with just a little bit of XAML. In this [...]

[ More ] July 7th, 2009 | 1 Comment | Posted in Programming |

Select Max Value With LINQ To SQL

Today I was asked a question by a developer on my team. The question is “How do you select MAX value for a column in a table with LINQ To SQL?”. I will try to answer the question in this post with an example. Let’s say that we want to retrieve maximum unit price from [...]

[ More ] July 7th, 2009 | 2 Comments | Posted in Programming |

What Is Microsoft Windows Azure?

This video is by far the best explanation I have seen. It cannot get any simpler and smarter. Original source of the video is Channel 9.

[ More ] July 1st, 2009 | 2 Comments | Posted in Programming |

Silverlight Predefined Colors – What Color Are They?

While writing Silverlight applications, I find it challenging to pick colors from the list of predefined colors supported by Silverlight. Honestly I don’t know what those fancy colors look like. There! I said it!. Happy? To overcome this issue in true developer style, I wrote a small utility which shows all predefined colors on a [...]

[ More ] June 30th, 2009 | 1 Comment | Posted in Programming |

Silverlight Wrap Panel

Wrap panel in Silverlight is missing out of the box, but this need is fulfilled by Silverlight Toolkit which also includes many other controls. In this post we will look at WrapPanel. I will show you how to use it and what it is used for.
To use wrap panel you have to install Silverlight Toolkit. [...]

[ More ] June 28th, 2009 | No Comments | Posted in Programming |

Silverlight Canvas Panel

Panels are basic layout mechanism in both Silverlight and WPF. They act as containers for other controls and each panel provides a different way of laying out controls on the screen. In this post we will look at Canvas Panel in Silverlight. Canvas allows us to put controls based on x and y  coordinates. This [...]

[ More ] June 25th, 2009 | No Comments | Posted in Programming |

Request Error In ADO.NET Data Services

When creating a new ADO.NET Data Service you may find yourself with this error.

Don’t call it quits on ADO.NET Data Services because of this error. It is very easy to fix. Have a close look at the code generated by Visual Studio for you.

Here the code calls SetEntitySetAccessRule on “MyEntitySet” but most likely [...]

[ More ] June 16th, 2009 | No Comments | Posted in Programming |

Find Unused CSS On A Website

During the course of a project we often end up adding elements to style sheets which do not get used. This causes css files to bloat which impacts performance. The best thing to do is to keep track of css elements which are not being used and remove them. This can become a strenuous task [...]

[ More ] May 28th, 2009 | 1 Comment | Posted in Programming |

Visual Studio 2010 Beta 1 First Look

For those who are following me on Twitter know how eager I was to get my hands on Visual Studio 2010 beta1. Today I downloaded it and installed it on my Windows 7 VM. This post is a random collection of my early observations. It is full of screenshots. Enjoy.
The start page had a new [...]

[ More ] May 19th, 2009 | 2 Comments | Posted in Programming |

SSMS Tools For SQL Server 2008

SSMS Tools Pack is a must have add-in for SQL Server Management Studio. It comes packed with a great set of features which as the author says on his site “…were missing from Management Studio”. Here is run down of three features I use most.
Text Format
If SSMS Tools Pack had only one feature and [...]

[ More ] April 27th, 2009 | No Comments | Posted in Programming |

Capture XML In WCF Service

Working on a project where we wrote WCF Services a need was identified to capture the raw xml passed in to the service operation and also capture the reply xml sent back by the service. WCF does not provide such facility out of the box but it can be easily implemented using behaviours. In this [...]

[ More ] April 1st, 2009 | 11 Comments | Posted in Programming |