Adding Icons to the DateTime Picker

Windows Phone Tutorial

If you just add a DateTime Picker (from the Windows Phone Toolkit) to your application,DateTimePicker it will work but its icons will be very unsatisfactory – just a pair of X’s.  To get the proper icons, follow these steps:

1. Add the DateTime Picker to your application
2. Copy the Toolkit.Content folder from the Toolkit Samples to your application
3. Create a Toolkit.Content folder in your application and Add-Existing to add the contents to your application
4. Set all of the .png files from Resource to Content
5. Rebuild and run.  Hey Presto! The correct icons appear.

(30)

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

Windows Phone WCF OData Client

Windows Phone Tutorial

In a recent posting I showed how to create a quick OData service using Entity-Framework Code-First and SQLCE4.  In this posting I’ll show how to create a simple Windows Phone client to interact with that service.

Continue reading →

Posted in Data, Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 1 Comment

My presentation at //build

I presented on Windows Phone Xaml Programming at the //build conference. It was great fun. You can watch the video here.

Posted in Mango, News, WindowsPhone | 3 Comments

Yet Another Podcast #49–Jon Galloway: What’s New In ASP.NET

Talking with Jon Galloway about what’s new in the ASP.NET family, including previews E of MVC 4, Visual Studio 11, Web Forms 4.5 and WCF Web API.

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Blend, Essentials, HTML5, Languages, MVC, Podcast, Visual Studio | Tagged | Comments Off on Yet Another Podcast #49–Jon Galloway: What’s New In ASP.NET

Survey Time!

Please help us determine which topics are of most interest by taking this incredibly short survey.  It’s anonymous, it’s free and if you complete the survey you are eligible to feel really good about yourself. 

Posted in Mango, WindowsPhone | Comments Off on Survey Time!

Creating an OData Server Quickly

Windows Phone Tutorial

There are numerous ways to access data from Web Services.  To explore these we need a simple server that exposes data we can interact with from a Windows Phone Application.

To facilitate this, we’ll build an ASP.NET/MVC 3 application that uses  Entity-Framework Code-First (Magic Unicorn Edition)  on top of SQLCE4, and we’ll expose the data in a WCF Data Service using the Open Data (OData) Protocol   This can be done surprisingly quickly and is highly reusable.

Continue reading →

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

Speedometers and GPS units

I’ve noticed that the speedometer in my car says I’m going faster than the speed reportedstopwatch by my GPS.  On reflection, this makes a lot of sense, and the GPS is almost certainly right.

Continue reading →

Posted in Community, Observations | Tagged | 10 Comments

DataBinding to Custom Properties

Windows Phone Tutorial

In a recent three part mini-series I showed how to create a Xaml program CalcDisplay from scratch.  In the third part of the series I showed how the values are computed for display, but I glossed over how the display value is bound to the display control itself.  Let’s focus on that for a moment in what I guess is now part 4 of the three part series.

Continue reading →

Posted in Data, Essentials, Mango, Mini-Tutorial, WindowsPhone | Tagged | 1 Comment

Yet Another Podcast #48–Adam Kinney and HTML 5

Talking with Adam Kinney AKabout HTML 5 and the role of the UI Integrator

 

Listen | Yet Another Podcast

Call in comments: 1-347-YAP-CAST

rssiTunesalt

Posted in Essentials, HTML5, Languages, Mango, Patterns & Skills, Podcast | Tagged | 1 Comment

Building a Windows Phone App From Scratch–Part 3 of 3

Windows Phone Tutorial

In Part 1 of this mini-series we created the layout for a calculator. Calcflowers In Part 2, we filled in the event handlers for the buttons.  In this third and final part we’ll review the code for the calculator and we’ll add a click sound for each button press. 

Let’s start by looking at the simple underlying logic.  We examined the DisplayNumber property and its backing DependencyProperty in the previous posting. 

The rest is simply a matter of keeping track of when the user is entering a new number (e.g., if the user enters 56 + 35 we want to consider 35 a new number, but not the six following the five).  To keep things simple we’ll force the user to hit the equal sign between each pair of numbers.

Continue reading →

Posted in Data, Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 4 Comments

Building A Windows Phone App From Scratch–Part 2

Windows Phone Tutorial

In Part 1 of this mini-series we created the layout for a calculator. In this part, we’ll take a look at the event handlers required to make the buttons works. 

When the user clicks a button an event is raised. You can register a method to “handle” that event – that is you can set up your program so that when the user clicks your button a specific method is invoked.

There are a number of ways to register a method to an event. One imageof the easiest ways to do this is to click on the Button in the Designer and then to click on the event  you’re interested in in the Properties window. To see the events, you need to click the events button in the upper right hand corner, as shown in the figure.

Continue reading →

Posted in Data, Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | Comments Off on Building A Windows Phone App From Scratch–Part 2

Building A Windows Phone App From Scratch

Windows Phone Tutorial

In this and the next few blog posts, we will build an application from scratch; covering Calculator all the details along the way.  The application we’re going to build is a simple four function calculator. We’ll build it using Visual Studio and Expression Blend.

To get started, open Visual Studio and create a new application using the Windows Phone Application template (under the Silverlight for Windows Phone Installed Templates). 

Continue reading →

Posted in Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 8 Comments