The Accelerometer and the Emulator

A Windows Phone Tutorial

The Windows Phone 7.1 SDK (formerly known as Mango) includes a new extended AccelerometerMovement emulator that allows you to see the effect of moving the phone when using the accelerometer. 

We’ll draw a dot in the center of the phone screen, and then move that dot by “tilting” and “rotating” the emulated phone.

Continue reading →

Posted in Essentials, Mango, Mini-Tutorial, WindowsPhone | Tagged | 4 Comments

Windows 7.5 Video: Fast Application Switching

The latest in the “Mango Videos” series is posted.

Posted in Essentials, Mango, Patterns & Skills, Video | Tagged | 1 Comment

Yet Another Podcast #59–Lino Tadros

Talking with Lino Tadros, CEO of Falafel Software, LinoNewSiteabout programming for the .NET stack.

Falafel Software

Yet Another Podcast listeners are invited to buy the Falafel e-book Windows Phone 7.5 Nuts & Bolts for 50% off.  Just use the coupon code YAPODCAST.

YAP Listeners are also invited to a 50% discount on the Falafel 12-hour online training course Feb 22nd to 24th.  Use the coupon code YAPODCAST. 

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Community, Mango, MVVM, Patterns & Skills, Podcast, WindowsPhone | Tagged | 2 Comments

Yet Another Podcast #58–Julie Lerman and EF/CF

Talking with  julie_100x130_thumbJulie Lerman about Entity Framework and Code-First. 

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Data, Essentials, Linq, Patterns & Skills, TDD | Tagged | 1 Comment

Playing A Sound, Simplified

Windows Phone Tutorial

In a previous posting I discussed how to play a sound using a background process.  That is great when you need the sound to continue playing even if you leave your application. But much of the time you need something far simpler: just the ability to play a sound and be done with it.

For that, all you need is to add a MediaElement to your Xaml.  In the following sample we place two buttons on the MainPage; one to start playing the sound and one to stop it.

The trick is also to add an invisible MediaElement to the Xaml, which will be the control on which you’ll call such methods as Play() and Stop().

Continue reading →

Posted in Essentials, Mango, Mini-Tutorial, WindowsPhone | Tagged | 5 Comments

Yet Another Podcast #57–Kendo UI

I spoke with Burke Holland, Kendo UI Evangelist, and Todd Anglin, VP of HTML5ToddAnglin Tools for Telerik about their new platform for creating HTML5/JQuery applications: Kendo UI.

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Community, Tools and Utilities, UI | Tagged | 1 Comment

Full Stack Resumes–MVVM Design

The Full Stack project resumes with a bang as Jon Galloway and I talk with John Papa about MVVM design.

Posted in Full Stack, Mango, MVVM, Video, WindowsPhone | 1 Comment

New Videos Uploaded

I’ve recently uploaded a number of new Videos in the Windows Phone 7.5 video series.  The two most recent (uploaded today) are on persisting an image and navigation within an MVVM application.

Posted in Mango, WindowsPhone | Tagged | 3 Comments

Calling Navigate From The View Model

Windows Phone Mini-Tutorial

In the third part of the MVVM Light Toolkit Soup To Nuts (part 1 is here) I started with an application that had two pages, and a button on the first that was to cause a navigation to the second page.  You can download the starting source code here. 

In that article I explained how the VM cannot call the Navigate service, but that you could use messaging to have the View make the call.  While that is correct, there is an easier way; which is to grab the rootFrame and to call Navigate on that.

Continue reading →

Posted in Mango, Mini-Tutorial, Patterns & Skills | Tagged | 9 Comments

Yet Another Podcast #56–Jeff Blankenburg: Evangelist

Talking with Jeff Blankenburg about his 31 Days of Mango series and what jeff it means to be a Microsoft Evangelist. 

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Essentials | Tagged | 3 Comments

Vibrating the phone

Windows Phone Tutorial

A little vibration added to your application can be just the haptic feedback needed. It turns out that vibration is absurdly easy to add; so much so that discussions of adding vibration typically come with the caveat that you want to use it sparingly; too much of a good thing can make for a very annoying application.

To see how to add vibration to an application, let’s start by creating a new application named Vibrate. 

Continue reading →

Posted in Essentials, Mango, Mini-Tutorial, WindowsPhone | Tagged | 3 Comments

Binding Formatting

Windows Phone Tutorial

When you are binding data there are additional properties that allow youBindingFormatting to format the display and to handle errors and null values.

The StringFormat property allows you to add any standard .NET format string that matches the type you are binding to.

The FallbackValue instructs the binding on what to display if the binding fails.

The TargetNullValue instructs the binding on what to display if the value bound to is null.

Continue reading →

Posted in Data, Essentials, Mango, Mini-Tutorial, WindowsPhone | Tagged | 5 Comments