Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Browse by Tags

All Tags » version 2 (RSS)
Silverlight Tip of the Day #106 – Setting Default Browser from within VS
From within VS you can specify which Internet browser you want launched when running your Silverlight application. Your default system browser is not affected by this setting. To make this change right click on your startup web page and choose Browse...
Silverlight Tip of the Day #105 – How to Enable GPU Acceleration
With the release of Silverlight 3 Beta 1 GPU (Graphics Processing Unit) acceleration (or hardware acceleration) is now available. The GPU is a processor attached to your graphics card that is generally used for calculating floating point operations. In...
Silverlight Tip of the Day #104 – Cool Silverlight Tutorial Blogs
Of the course of the last year I have been collecting links to some really good Silverlight tutorial blogs that I thought I would share with you. These are active blogs, frequently updated, that are specifically oriented to teaching Silverlight development...
Silverlight Tip of the Day #97 – How to get an Image’s Source File Name
Once you have an image loaded how do you go back and get the original file name for the source file? This can be accomplished through the Uri property of the images Source . However, you must first typecast the images Source to be a BitmapImage . The...
Silverlight Tip of the Day #96 – The meaning of AG_E_PARSER_BAD_PROPERTY_VALUE
If you ever run into this error when running your application you might be a bit perplexed by its encrypted meaning. Looking at the exceptions details you will see something like which really doesn’t help you very much: System.Windows.Markup.XamlParseException...
Silverlight Tip of the Day #95 – Working with Strokes in Shapes
When it comes to drawing shapes such as rectangles you are probably fully aware you can draw shapes specifying the color and thickness of the lines. This is done via the properties StrokeThickness and Stroke . For example, take a look at the rectangle...
Silverlight Tip of the Day #94 – Reading XML through LINQ with Silverlight
In Tip of the Day #93 I showed you how to read XML via XmlReader . However, a better and simpler approach (IMHO) would be to use LINQ. Let’s start with the same XML file we used in Tip #93. <?xml version= "1.0" encoding= "utf-8"...
Silverlight Tip of the Day #92 – How to Load Images from a Stream
In Tip of the Day #86 I showed you how to load external images not included in the project such as images on the web. In this Tip I will be showing you had to load images from the client’s machine through a file stream. Due to obvious security reasons...
Silverlight Tip of the Day #91 – How to Apply Themes from the Silverlight Toolkit
In addition to controls, the Silverlight Toolkit comes with a great set of themes that can easily be applied to your controls. These themes currently include: Bureau Black Bureau Blue Expression Dark Expression Light Rainier Purple Rainier Orange Shiny...
Silverlight Tip of the Day #90 – How to Edit your CSPROJ File from VS
The CSPROJ file, saved in XML format, stores all the references for your project including your compilation options. There is also a SLN file which stores information about projects that make up your solution. If you are using Visual Studio and have the...
Silverlight Tip of the Day #89 – How to use String Resources
In this Tip I will be showing you how to place hard coded strings into a resource area. This is a common best practice for software development that makes it much easier to manage the strings in your application. To start, open up your App.xaml file and...
Silverlight Tip of the Day #84 – How to Dynamically Load a Control from a DLL
If you have a large game or application it might be wise to break it up into smaller components (DLL’s) that can be downloaded to the client from the server as needed. This way your customers are not stuck waiting for a large download to complete when...
Presidential Inauguration to be streamed live in Silverlight
On Tuesday, January 20th the Presidential Inauguration will be available through the Inauguration Committee web site . They will be streaming live with the help Microsoft Silverlight. The event, starting with the swearing-in ceremony, starts at 11:30...
Silverlight Tip of the Day #83 – Go to MIX09
MIX Is just around the corner and if you haven’t already registered I highly recommend you do! This is one event I look forward to the most each year. I attended last year and I had the most incredible experience learning about Silverlight and meeting...
Silverlight Tip of the Day #82 – How to Implement Double Click
Silverlight currently has full mouse support for single click. However, double click is a another story. In this tip I will show you how to implement double click. You can apply this technique for an individual control or even your entire page. The key...
Next