Adding 'mailto' link
How to programmatically add a 'mailto' link in silverlight:Add the below line to your .xaml.cs file to open mailto (email link) when an event gets fired (i.e. HyperlinkButton is clicked or etc):...
View ArticleCreate a Tooltip window with smart positioning
As well as demonstrating how to create a simple Tooltip control for your application, this post will also show you how to get/set the absolute position of a control in your application even if it is...
View ArticleBasic Silverlight Deep Linking
DeepLinking is one of the greatest features of Silverlight 3 in my opinion and this post will show you how to add Deep Linking to your Silverlight application in four simple steps:1. Add Frame control...
View ArticleSetting the Z Index of a control from C#
To set the ZIndex of a Silverlight control programmatically use: Canvas.SetZIndex(_control, zIndex);Where _control is your Silverlight control and _zIndex is an integer number which you would like the...
View ArticleSilverlight QueryString using TryParse() method
In order to get the value of your QueryString parameters from the URL all you need is this line of code:int id = HtmlPage.Document.QueryString["ID"];And you need to add Windows.Browser namespace for...
View ArticlePlay sound in Silverlight using MediaElement
If you want to play music or a short sound clip in Silverlight here is what you need to do:1. Your sound fileFirst, make sure you sound file is MP3 or WMA format as other formats are not supported.Save...
View ArticleSet Margin and Canvas programmatically
To set the margin or Canvas of an object from the code you can use SetValue() which is a built-in method. SetValue() takes a DependencyProperty such as a Button, and a double value.Example:...
View Article
More Pages to Explore .....