First, Add xaml elements page:
<Grid x:Name="ContentPanel" Margin="0,0,0,1" Background="White"
Width="450" Height="400">
<InkPresenter Background="Transparent" Margin="10,10,10,10"
&n...
[More]
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]
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]
Normal 0 false false false EN-US ZH-CN X-NONE A virtualized file system can only be accessed by your application. I think this ...
[More]
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]
Xaml Codes:
The code way to show data with ListBox:
Use ListBox with DataTemplate:
…
…
DataTemplate seems more elegant and easy to use.
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
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]
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]
24. March 2012
xhinker
DotNet
"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]