It's time for another July TechNet Guru winner!
Congratulations to Ken Tucker, our Windows Phone Development Guru winner for July! See the TechNet Guru Contributions for July 2013.
About Ken: MCPD. I am interested in MVC, WP8, WP7, and Windows Store apps. An MVP, MCC, and Microsoft Partner, who works at Sea World.
Here is the gold-medal-winning article:
Create an Analog Clock in a Windows Store Application
Now let's look at all the winning articles:
Nine great articles contributed for July, thanks to everyone in the Windows Store category. Sachin S also contributed FOUR great articles for July and narrowly missed a medal. Hopefully we will see more from all these players in August?
And here's an excerpt from the article:
This sample uses xaml and C# to create an analog clock in a windows store application. Xaml allows you to vary the angle of lines when drawn on the screen. I used an ellipse as the background of the clock. We will draw 3 lines for the hour, seconds, and minute hand on an analog clock.
The C# code:
DispatcherTimer timer = new DispatcherTimer(); public MainPage() { this.InitializeComponent(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += timer_Tick; timer.Start(); } void timer_Tick(object sender, object e) { secondHand.Angle = DateTime.Now.Second * 6; minuteHand.Angle = DateTime.Now.Minute * 6; hourHand.Angle = (DateTime.Now.Hour * 30) + (DateTime.Now.Minute * 0.5); }
===================================
Read the rest here:
Thanks to Ken Tucker for your great contribution to the TechNet Guru contest! You can read about all the July winners here: TechNet Guru Awards - July 2013
Also, for the August Guru competition, see TechNet Guru Contributions - August 2013.
Are you a Wiki Ninja? http://technet.com/wiki
- User Ed