Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » silverlight   (RSS)
Sorry, but there are no more tags available to filter with.

Silverlight 2.0 Stock Quotation Demo Part 4/4: Cache the previous quoted symbols

The steps are: 1. Adding the following functions to the Page.xaml.cs private string m_filePath = "TestHistoryStocks.txt" ; #region "Local Cache storage" /// <summary> /// Append the current cacheString to the local storage file, will remove all
Posted by xinqiu | 4 Comments
Filed under:

Silverlight 2.0 Stock Quotation Demo Part 3/4: Show different color for up and down quotes

The steps are: 1. Change the column XAML for “Trade” to use cell template: < data : DataGridTemplateColumn Header ="Trade" Width ="80"> < data : DataGridTemplateColumn.CellTemplate > < DataTemplate > < TextBlock TextAlignment ="Right"
Posted by xinqiu | 1 Comments
Filed under:

Silverlight 2.0 Stock Quotation Demo Part 2/4: Basic stock quotation

The steps are: 1. New Project, select C#/Silverlight/SilverilghtApplication. Click OK to “Add Silverlight Application” dialog, which defaults to “Add a new ASP.NET Web project to the solution to host Silverlight”. I named the project as StockQuotesForBlog.
Posted by xinqiu | 1 Comments
Filed under:

Silverlight 2.0 Stock Quotation Demo Part 1/4: Basic Design

Here is a Silverlight demo for getting stock quotes using data grid. It also demos how to use stored cache to save all the queried symbol before. The design would like: I used Visual Studio 2008 SP1 with Silverlight 2.0 RC. For stock quotation service,
Posted by xinqiu | 1 Comments
Filed under:

Attachment(s): StockQuotesForBlog.zip

Siverlight 2 Beta 2 Balloon shooting tutorial Part 4/4, Create Silverlight project, modify the main control Page.xaml

Step 5. Replace the Page.xaml control with the following XAML: < UserControl x : Class ="ShootBalloonForBlog.Page" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns : x ="http://schemas.microsoft.com/winfx/2006/xaml" Width ="800"
Posted by xinqiu | 5 Comments
Filed under:

Siverlight 2 Beta 2 Balloon shooting tutorial Part 3/4, Create Silverlight project, add BalloonAction.cs

Step 4 . Add BalloonActions.cs class file with the following code: using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using
Posted by xinqiu | 2 Comments
Filed under:

Siverlight 2 Beta 2 Balloon shooting tutorial Part 2/4, Create Silverlight project, add balloon user control

I’m using Visual Studio 2008 SP1 with Silverlight 2 Beta 2 SDK. 1. New Project, select C#/Silverlight/SilverilghtApplication, if there is any dialog asking options, select OK for default. I named the project as ShootBalloonForBlog. 2. Add a new user control
Posted by xinqiu | 2 Comments
Filed under:

Siverlight 2 Beta 2 Balloon shooting tutorial Part 1/4, Design

Here’s the demo of how to write a simple silverlight game: Design: I played a computer game Monopoly before. There is a fun balloon shooting game which I’d like to design myself. The player clicks on the flying balloons and get the marks corresponding
Posted by xinqiu | 2 Comments
Filed under:
 
Page view tracker