Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / Silverlight

Silverlight

Silverlight

Great Reads

by Ed Dupas
An extension of the code submitted in the article: "Modal Window in Silverlight". This extension wraps the hosted control in a window frame that provides various modal features.
by Jerry Evans
Improving scrolling performance in Silverlight
by Redgate Software
Identifying an application’s performance bottlenecks is all about understanding how the application is spending its time. Only with the most complete understanding of how an application is operating is it possible to understand what it is doing wrong, as this article describes.
by Brad Joss
[RegSave] your property to the Registry, and more.

Latest Articles

by Ed Dupas
An extension of the code submitted in the article: "Modal Window in Silverlight". This extension wraps the hosted control in a window frame that provides various modal features.
by Jerry Evans
Improving scrolling performance in Silverlight
by Redgate Software
Identifying an application’s performance bottlenecks is all about understanding how the application is spending its time. Only with the most complete understanding of how an application is operating is it possible to understand what it is doing wrong, as this article describes.
by Brad Joss
[RegSave] your property to the Registry, and more.

All Articles

Sort by Score

Silverlight 

by Savalia Manoj M
How to pass Control Event to ShellView (Main Page) using Caliburn.Micro?
by Savalia Manoj M
[Silverlight] Checkbox list within ListBox using DataTemplate.
by Jens Theisen
A grid splitter separating four quadrants
by İlkay İlknur
Silverlight Focusing Issue
by Ramanujam Shankar
Show data in grid view control of Windows Stores App using web service or WCF
by Mahmudul Haque Azad
Accessing image from Resource File in XAML markup
by billxie
Advanced technique to apply animation concurrently on multiple controls.
by Andrew Rissing
A tip to overcome limitations in Blend 3 and Blend 4 RC when dealing with attached dependency properties.
by Peace ON
Introduction...
by syncsivakumar
Behaviors and Triggers explained with samples.
by Houssem_Dellai
Using Bing Maps in Windows Phone 7
by Kashif_Imran
A user control that provides fancy buttons for panning purposes in Silverlight
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Kubajzz
How to avoid performance problems when capturing audio only (or video only)
by Santhosh Kumar Jayaraman
Silverlight doesn't have a ListBox control with a checkbox. In this article, I describe how to achieve that functionality in Silverlight using MVVM.
by Member 4053748
Convert color code to SolidColor.
by Adam David Hill
I think there might be a couple of typos in the original code. This works, though...public SolidColorBrush GetColor(string ColorCode){ return (SolidColorBrush)XamlReader.Load( "<SolidColorBrush xmlns=\"http://schemas." + "microsoft.com/winfx/2006/xaml/presentation\"...
by Lauren Lilly
It is not necessary to create a converter to bind a ComboBox to an object
by AesopTurtle
Mimic a loading animation as seen in Windows 8 using pure XAML.
by Narsimlu Keshagouni
The code shows how to implement currency masking (format like $21,900) in Silverlight DataGrid using the IValueConverter. User can edit the data in numbers with out entering the commas.Having knowledge in Silverlight data binding to DataGrid is enough to understand the code.Create a simple...
by defwebserver
Current masking in Silverlight Datagrid
by Christian Amado
This brief tutorial pretends to demonstrate how to add custom properties inside DomainService's metadata class
by Hiren Khirsaria
Silverlight with IValueConverter to to Format Data
by Daniel Vaughan
In order to detect whether your application is executing in a designer you can either use the GetIsInDesignMode method of DesignerProperties,or the Dependency Property metadata directly like so:C#:bool designTime = (bool)DesignerProperties.IsInDesignModeProperty.GetMetadata( ...
by Herre Kuijpers
Short and efficient algorithm for pixel plotting a 2D triangle on a bitmap
by Abhinav S
Dynamic module loading in Prism (CAL)
by Omar Al Zabir
Silverlight webservice references get harcoded in ServiceReference.ClientConfig. The URLs get set to your development servers. But when you deploy live, the URLs don't match. Here's a way to dynamically change the URL of the service based on which website the Silverlight app is loaded from.
by #realJSOP
This is how I do it (we determine the host and select the appropriate endpoint).// these are the endpoints define in the webconfig filestring LocalHostEndpointName = "LocalHost_Endpoint";string ProductionEndpointName = "Production_Endpoint";string CurrentEndpoint = "";//...
by Darek Danielewski
If you are using ChannelFactory to access your WCF service here is another solution: http://pocorath.blogspot.com/2011/08/servicereferencesclientconfig.html[^].
by Ajit_Pudale
Tip to add EmptyDataTemplate in WPF or Silverlight DataGrid
by Christian Amado
A very brief article about the implementation of encryption and decryption of a string in Silverlight Business Application
by Savalia Manoj M
Unhandled error in Silverlight application-Error 2103.
by Lolo1986
This tip will help to import/export from a LightSwitch web application.
by Mahmudul Haque Azad
FireBug like tool for WPF
by Mahmudul Haque Azad
I found a better alternative of snoop... WPF Inspector! http://wpfinspector.codeplex.com/[^]
by Julien Villers
After installing the RC of Silverlight 5, you can't play DRM protected videos, here's a fix.
by Hiren Khirsaria
Edit Selected row Data using CellEditTemplate
by webmaster442
How to format your XAML documents for effective version handling & maximum maintainability
by Paul Schwartzberg
Formatting XML in a string for visual presentation.
by Paul Schwartzberg
If you have unformatted XML in a string and need to format it for visual presentation, e.g. for sending it to your UI, here's how to do it for Silverlight 4.0.
by epicTurk
F# Quotations support for ViewModelSupport.ViewModelBase Property get\set Accessors
by #realJSOP
If you need to get the position the mouse was clicked, in relation to a specific UI Element, this might help
by Daniel Vaughan
Ordinarily the Application.Current.RootVisual.Dispatcher property is used to retrieve the System.Windows.Threading.Dispatcher for an application. Of course this won't work if performed before the RootVisual has been assigned. To get the Dispatcher for an application before the RootVisual has...
by #realJSOP
Dorothy was right - there's no place like home.
by #realJSOP
Get access to your Silverlight MainPage object
by Timmy Kokke
When writing a demo for the Dutch Code-camp  I ran into issues getting back on the UI thread after calling a webservice. The call to the webservice was made from the UI thread, but the callback was made on a different thread. The System.Threading.SynchronizationContext class held the...
by Hiren Khirsaria
AgDataGridHeaderMenu
by fjparisIII
Cannot use Storyboard because ScrollView.VerticalOffset property is read-only. Must use old fashioned DispatchTimer.
by fjparisIII
Cannot use Storyboard because ScrollView.VerticalOffset property is read-only. Must use old fashioned DispatchTimer.
by fealbernaz
How to debug RIA Service Class Library ( RIA "magic" demystified )
by TheRealSteveJudge
Debugging Silverlight applications on 64 bit Windows and Internet Explorer 11
by umangsain
Thanks for providing the coding, i am also searching for the same content and now i need not to search any where.bike authorized dealers
by gsvolt
Draing a two-color line in Silverlight.
by Ivan Signore
A workaround to SecurityException while getting file's full path in Silverlight
by KADJINA Toyi
This sample is about hiding automatically datagrid columns when all rows of this column are empty.NB: The following code is for silerlight 5 and can be readapt for WPF
by kj-dev
Launching external application or file from Silverlight 4 (out-of-browser) using Automation Factory
by Tilerphy
How to Resolve the popup error window when open AvePoint DocAve site in Windows 8
by DawningTiger
Simplify Coding DependencyProperty
by ekolis
Visual Studio already has built-in "code snippets" to handle this; type "propdp" and hit tab. For some reason this doesn't work in Silverlight projects, but you can get around this by copying the snippet from a WPF project into the Silverlight snippets list.
by VictorSotnikov
Using certain properties of System.Windows.Controls.ComboBoxItem, we can “split” Combobox list in several “sub-lists” separated by special ComboBoxItem instances that play role of “separators”
by Shine K Velayudhan
Why and How to implement KnownType Attribute in WCF Service
by Glen Banta
Integrating the HSS Interlink UploadFileDialog feature with Microsoft’s application platform, LightSwitch for Visual Studio.
by #realJSOP
Extension method that checks for a properly Xaml-ized string
by Member 4053748
Silverlight
by Manjunath Shrikantiah
How to dynamically load multiple charts in Silverlight.
by kvreddy
Microsoft WPF vs. Silverlight, a comparision
by Rahul.KumarSharma
Custom mouse double click helper class for Silverlight.
by Tharindu Nishad Patikirikorala
The MultiLevelMultiSelectCombo is an extension of the Silverlight combo box having capabilities to display hierarchical data and enable selection of multiple items.
by Juan Pablo G.C.
Loading from webservice and after a processing update the UI
by Yasser Moradi DNP
Parse CanExecute to detect when CanExecuteChanged should be called.
by AspDotNetDev
The Silverlight WebBrowser won't navigate to some URL's, but this can be worked around.
by #realJSOP
In WPF/Silverlight, you might want to bind to a dictionary. Here's a couple of websites I found.
by Jun Du
I had to create a trivial image button for my Silverlight web site. I Googled the web and got tons of tips and suggestions. However, most of them involve several editing steps through resources, template or style. Some require additional tools, such as Expression Blend. In my...
by Ilya Builuk
Open source project of guitar tablature viewer for Windows Phone
by #realJSOP
Make interfacing with your web service simpler and more maintainable
by muralikannan_t
How to pass values from one Silverlight application to another using WCF service
by isenthil
How to play a sound in Windows Phone using media element
by Ángel Manuel García Carmona
What to do if a Silverlight media player from your website isn't visible in Firefox or another web browser based on Firefox.
by Gary Bilkus
How to get Silverlight 4 to display dates by default using the regional settings in the Control Panel.
by Sumit Samediya
Here we will learn how to remove default background color of ListBox item on selection in Windows Universal App
by Dipti Dutta
KeyDown event handler to restrict numbers to two decimal places.
by Duncan Edwards Jones
How to save a Silverlight Telerik grid content to Excel
by AnobikDey
The article describes how to select all the contacts in Windows Phone 7 and 8
by Kortez2223
How to sent email (Yahoo! SMTP) with Silverlight 5 WCF RIA.
by Nandakumar Rangaswamy
Server Requirements for Silverlight Application Deployment
by Prashant Trambake
The silverlight dose not need any special server requirements. Silverlight websites can be run on very simple windows servers having dotnet framework, ms sql (If website need). All you need to add MIME types to support the correct content type interpretation by the browser. Generally in IIS7,...
by #realJSOP
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
by Nish Nishant
John, here's a simpler way to do this. This will also handle strings like "3*" which are valid grid length values in Xaml.private RowDefinition MakeRowDefinition(string height){ RowDefinition rowDef = new RowDefinition(); GridLengthConverter converter = new...
by Ajit_Pudale
Tips to control printer setting without printdialog in Silverlight
by Sujeet Bhujbal
In this article I will tell you how to create shapes and create custom drawings using the Path property.
by Mahdi Ataollahi
Implementing Microsoft.AspNet.SignalR 2 and Microsoft.AspNet.SignalR.Client 2 in Silverlight
by #realJSOP
What to do if you want to resue a style for more than one component of a particular type on a given Silverlight Page
by Abhinav S
Temporary XCP files are created on the local drive and are not cleared up until the user manually deletes them.
by #realJSOP
Follow these guidelines for trouble-free dictionary merging in Silverlight
by jawaharks
Silverlight 4 printing restricts any control to print in a single page, leaving the remaning portion. This is a workaround for that.
by D Joubert
Silverlight 4 OOB download problem solved ! Now we can pause, resume, restart.
by mbcrump
Silverlight 5 enables support for multi-click input on left and right mouse button
by Uday Kumar B R
In this article you will learn How to develop Silverlight Application
by michael_john_talbot
I needed a small footprint, highly performant binary, reflection based serializer for the project I am working on...
by ASP.NET Community
Here are some recommended blogs and podcasts dedicated to Silverlight either completely or for the most part.BlogsList of Silverlight Community
by Ian Landicho
A simple combo box that will have predefined items but the selected value bound to a property from our View Model.
by ASP.NET Community
Here's some particularly amazing Silverlight examples found in the blogosphere. Also, be sure to check out the Silverlight Galleries and the Learn
by #realJSOP
The Silverlight navigation app ErrorWindow exposes the last exception thrown, but doesn't show the INNER exceptions. Here's how you can do it.
by Ilnur Yusupov
Silverlight Fluent DataGrid provides a simple approach for creating complex tables with multi level headers, validation, hierarchy, and summaries support.
by Juan Pablo G.C.
Using this you can animate or change states of the actually visible items
by Anish M
In IE8, it seems that the Marquee tag isn't supported anymore. Need for a Marquee replacement got me into my first Silverlight tryout. Please note, this is done as a quick alternative to the Marquees that didn't scroll in IE8, with something non Javascript. I had to do it since I didn't find anythin
by Razan Paul (Raju)
You can take a look at http://weblogs.asp.net/razan/archive/2010/01/14/a-simple-text-marquee-control-in-silverlight.aspx
by Rupali Raghavan
A simple solution that allows you to databind custom properties on your WCF objects without the need for painful Converters or custom code-behind logic.
by Member 4053748
Silverlight
by vvss12300
Making Scrolling smooth in Silverlight Itempresenter
by chaitanya venneti
The Silverlight wrap panel is a great control which automatically wraps the elements in it either horizontally or vertically as required to fit them within the size of the panel. This short article explains how to enable a scrollviewer for the wrap panel content.
by User-Rock
Silverlight user control validation display techniques
by #realJSOP
Get around another irrational and arbitrary omission in Silverlight
by Henry Minute
A possible alternative solution. I say possible because I have no idea if it will work in Silverlight and even if it does whether it will be any easier/faster. public Color ColorFromName(string name) { Color result = Colors.Black; Type type =...
by Srinivasan Raj
Simple Image Button
by Aldonis55
A simple Silverlight application that shows how to apply Jeff Wilcox's UniformGrid control to a bound collection.
by N_tro_P
Simplify your MVVM Properties
by Rion Williams
This post will provide a short walk-through for handling and updating these areas of your application to gain more control over debugging, testing and running your applications through Visual Studio.
by Christian Amado
In this tutorial, we will discuss on ProgressBar & Background worker. Follow the step-by-step tutorial to know how to use these clases.
by Clifford Nelson
This tip provides an alternate way to combine data with text in a WPF control using a ValueConverter that could be considered easier.
by cjb110
A String To Brush Converter for WPF/Silverlight
by Kelvin Armstrong
GUI application for running SVCUtil to generate service model code
by Juan Pablo G.C.
An easy answer;
by saguptamca
Frequent error using WCF in Silverlight.
by vikas amin
check how your custom install screen will look, without uninstalling silverlight
by Kunal Chowdhury «IN»
Here I will show you how you can use the Text Trimming functionality in Silverlight 4.
by janman_dk
This works when running in browser. If you need to obtain this information when running OOB, see this article: http://www.pitorque.de/MisterGoodcat/post/Determine-screen-resolution-in-Silverlight-OOB.aspx[^].
by Kunal Chowdhury «IN»
The code describes how to get the Client's Screen Resolution in Silverlight.
by venugopalm
ToolTip for Disabled Element in Silverlight
by KarstenK
RFC 2617 on the net-platform
by Sandeep Mewara
What to do when you are unable to debug a Silverlight project
by Dmitriy Repin
A trick that allows populating a user control with sample data while you are designing it in the Visual Studio designer
by Le Sourcier
This tip helps in using font icons as ImageSource.
by barry fat
How to use HTTP Form POST method to pass parameters from a Silverlight application to an ASPX popup window.
by Zorayr Khalapyan
Tutorial of easy to use Silverlight message boxes hosted on CodePlex.
by Ashish Kaila
Illustrates how to dynamically bind to value converters in XAML using normal Binding
by dbg_af
Hi,I just built a tips site using Visual Studio 2010, the tips are about Visual Studio 2010,(I built the site using Silverlight and it contains video clips tips)Visit the site at:http://vs2010.zxq.netThanks, ;P
by Mike Fuchs
Introduction The following snippet provides a generic method to walk up the visual tree of Silverlight in order to find an element of a given type. It will return the first found item of said type, or null if the search ends at the visual tree root without any results.  Code // walk up the...
by jerpat
How to get (almost) all your code in one place when using WCF together with Silverlight
by Pawel Gielmuda
How to set orientation to landscape mode for XNA game in mixed mode (Silverlight & XNA)
by Josué Yeray Julián Ferreiro
Change the Sip used to enter text on any textbox based on the use you need of that textbox.
by Steve Maier
Digits is the one that defaults to the number keyboard.
by Daniel Vaughan
Stop trailling nulls from preventing deserialization.
by Juan Pablo G.C.
To translate App Resources
by ProtoBytes
Q: Have you ever tried to embed a FramworkContentElement into a FrameworkElement inside a WPF template?Consider the following: This won't work! ...
by Ajcek84
Overview of music notation library