Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Browse by Tags

All Tags » visual studio 2008 (RSS)
Silverlight Tip of the Day #60 – How to load a XAML Control From a File or String
If you have a control written in XAML that is included in your project you can load and create it directly from file by using the method: System.Windows.Markup. XamlReader .Load(). This method can also be used to directly create a Silverlight control...
Silverlight Tip of the Day #59 – How to Display Special Characters in XAML
If you try to use the following characters in a string in XAML you will get a slew of errors in your Error List: < > & “ For example, if you tried to do this: < Button Width ="100" Height ="100" Content ="Click &...
Silverlight Tip of the Day #58 – Text Wrapping and Line Breaks in TextBlocks
TextBlocks are a great control to use in Silverlight to display read only text. In Tip of the Day #45 I covered the basic usage of TextBlocks including formatting and text runs. For this tip I would like to show you how to make a TextBlock with wrapping...
Silverlight Tip of the Day #57 – How to Dynamically Load a Silverlight Control within another Silverlight Control
Let’s say your site is entirely written in Silverlight but you want to be able to load and run a different Silverlight application within your main Silverlight application/site. Currently this scenario is not directly supported in Silverlight. However...
Silverlight Tip of the Day #56 – Accessing the HTML DOM from Silverlight.
In Silverlight you can interact directly with the HTML DOM (Document Object Model). This can be done through the HtmlPage .Document object: HtmlDocument doc = HtmlPage .Document; Make certain to first add a reference to the following namespace: using...
Silverlight Tip of the Day #55 – How to Apply Styles in Silverlight – Part I
Styles are extremely important because they allow developers to control the look and layout of controls across their application. By using styles you can simply change the style declaration and all controls in the application are updated automatically...
Silverlight Tip of the Day #54: How to Develop with Silverlight Tools for Free
The recent RC0 release of Silverlight Tools for Visual Studio is now compatible with Visual Web Developer Express with SP1 installed! Express is FREE and can be downloaded here: http://www.microsoft.com/express/download/ . This version only supports the...
Silverlight Tip of the Day #53 – MessageBox is now Available in Silverlight 2
In Silverlight 2 you can now put up Message Boxes. The call is simple and straight forward and can be made without any input from a user. This method takes the following three parameters with the last parameters being optional: String – The message you...
Silverlight Tip of the Day #52 – How to Popup a Browser Window
Let’s say a user clicks on a button and you want to popup a separate browser and point them to a specific web page. How do you do this in Silverlight? Silverlight now supports a method called HtmlPage .PopupWindow(). For security reasons this call can...
Silverlight Tip of the Day #51 – How to Enable and Disable Controls
With Silverlight 2 RC0 Silverlight Controls can now be enabled/disabled via the property IsEnabled . This property is supported with all XAML controls found in the toolbox except those controls that are non-interactive (I.e. An ellipse, image, line, etc...
Silverlight Tip of the Day #50 – Main Game Loop Revisited!
In the recent release of Silverlight 2 RC0 there is a new event that fires once before the rendering of each frame in your browser. This rendering event is routed to the specified event handler after animation and layout have been applied to the composition...
Silverlight Tip of the Day #49 – How to Implement a Progress Bar
With the release of Silverlight 2 RC0 there are three new controls we will be discussing that were not available for beta 2. The three new controls with a Tip of the Day for each include: ProgressBar ComboxBox PasswordBox For this tip we will be exploring...
EnvDTE.OutputGroup.get_FileCount() exception with Silverlight 2 RC0
If you installed Silverlight 2.0 RC0 with the Blend 2.5 June Preview on the box you will notice the installer blocked on this version of Blend and gave the following error message: However, on the forums some customers have proceeded to install Blend...
Silverlight Tip of the Day #48 – How to Implement a Combobox
With the release of Silverlight 2 RC0 there are three new controls we will be discussing that were not available for beta 2. The three new controls with a Tip of the Day for each include: ProgressBar ComboxBox PasswordBox For this tip we will be exploring...
Silverlight Tip of the Day #47 – How to Implement a Password Box
With the release of Silverlight 2 RC0 there are three new controls we will be discussing that were not available for beta 2. The three new controls with a Tip of the Day for each include: ProgressBar ComboxBox PasswordBox For this tip we will be exploring...
Next