17. April 2012
xhinker
DotNet
I searched around the net for a C# rss reader, but samples are either too complicated or errors prone. DataSet.ReadXml() gets a bug...So, finnaly I realized that write one of my own rss reader would be a quick and better than use one from the internet. And I think this one is the BEST:)No more words...
[More]
1. Add reference to Microsoft.Xna.Framework dll .
2. Replace Grid xaml code with the following code:
<Grid x:Name="LayoutRoot">
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentP...
[More]
InkPresenter only allow on point drawing, To achieve multi-touch draw, in other words, draw with more than one finger. we'd implement the Touch.FrameReported event. here is what I have done:
public MainPage()
{
InitializeComponent();
Touch.FrameReported ...
[More]
Please run it in Chrome or Firefox or IE10
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.