[Windows Phone 7.5]Run BackGround Task

Run back ground task in windows phone 7.5, First. Create a Windows Phone Scheduled Task Agent project, name it for example: "BackGroundAgent". Open the default created ScheduledAgent.cs file. Write agent code in OnInvoke method:  protected override void OnInvoke(ScheduledTask&n... [More]

[Windows Phone]Timer

Timer code runs in WP7: timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 1);//or TimeSpan.FromSeconds(1) timer.Tick += (sender,e) => {     count++;     txtTimer.Text = count... [More]

[Windows Phone]Using Pivot Control

1. Add Reference to Microsoft.Phone.Controls dll   2. Add xmlns:controls attribute   xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 3. Use it   <controls:Pivot Title="Pivots">      <contr... [More]

[Windows Phone]Data Binding

First, define a Class People: Xaml elements are going to bind with object of People. Then, Create an instance in the Windows Page's construction method: Now, with the last line of code:     this.stackPanel.DataContext = myData; myData object is now binding with elements

[Windows Phone]Update Message to Live Tiles

Properties of Tiles So, why do we have to the Back_*** things? Every Tile has two sides, front side and back side. If we specify the back site tile,Live tile will rolling over and back every few seconds. Key code to update tile info Referenceshttp://msdn.microsoft.com/en-us/library/hh20294... [More]

[Windows Phone]Get Start WP7 development

Recently, I was start learning WP7 development. Here are some useful information I found, list here, for you and also for myself: MSDN documenthttp://msdn.microsoft.com/en-us/library/ff402535(VS.92).aspx Phone sample code:http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Phone Jump... [More]

[DotNet] Dip into Lambda Expression in C#

"lambda expressions are just delegates (or type-safe "function pointers"). They only look as they are because some assumptions are taken (like a lambda expression are functions and therefore always returns a value) and the types can be automatically fetched by the compiler. The nice side effect is t... [More]