|
Get URI Of Silverlight Plugin Host Page
Within our Silverlight application if we want to know the URI where our Silverlight content is running, we can tap into System.Windows.Browser namespace. This namespace contains object which are full of Browser related information. This is an example of retrieving the URI from within Silverlight application.
<StackPanel x:Name="LayoutRoot" Margin="10">
<TextBlock Text="Your URL is: " />
[...]
Silverlight 3 Element To Element Binding
Silverlight 3 among its other features includes element to element binding. This was always available in WPF but somehow missing in Silverlight 1 and 2. And now Silverlight 3 has bridged that gap. Element to element binding can reduce code when used properly. In this post I will show you how to use this feature.
Example
In [...]
Silverlight 3 Released
Microsoft has released Silverlight 3. Nuff said! Go and get it here.
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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.
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 [...]
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. [...]
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 [...]
Get Updates By Email
Popular Post
Tag Cloud
Code Snippets
- Get Current Windows User In C#
- Get Width And Height Of Image In C#
- Get Windows Registry Size With WMI And C#
- Reverse Array Elements Using C#
- Convert Hexadecimal To Number In C#
- Get Free Disk Space Using T-SQL
- SQL Server 2008 – Get All Indexes In A Database
- Get Name Of Current Executing Assembly In C#
- Get CD Or DVD Drive Information Using WMI And C#
- Get Last Row From Table Using LINQ To SQL

