Home

| RSS

Get Browser Information In Silverlight

While writing Silverlight you may come across a need to get information about host browsers within your application. In Silverlight this information is exposed by BrowserInformation class within System.Windows.Browser namespace. BrowserInformation can be accessed through HtmlPage class which also lives in System.Windows.Browser namespace. Here is an example where I am retrieving information about the browser.
<StackPanel [...]

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

Insert Master Detail Data With LINQ To SQL

Best thing about running One .Net Way is interaction with members of developer community. I thoroughly enjoy answering questions which come my way through this site. Early in the morning today I saw a question by Joey. To avoid loosing details in paraphrasing, here is the exact question asked by Joey.
I’m new to LINQ. If [...]

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

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 | No Comments | 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 |

Silverlight ebay Sidebar For Internet Explorer 8

Today I visited ebay for I think the 5th time in my life and I found that they have a new sidebar for Internet Explorer 8. What’s cool about this side bar is that it uses Silverlight.. You can view your active auctions and get information on your bids. A cool addin for ebay users.
[...]

[ More ] May 29th, 2009 | No Comments | Posted in News |

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 |