You are browsing the archive for Windows Phone.

More Complete WP7 Mango Database Update Walkthrough

September 15, 2011 in Silverlight, Uncategorized, Windows Phone 7

The MSDN documentation gives a walkthrough of how to update a local database application on the Windows Phone over time. The documentation gives quite a bit of detail but seems to miss a likely scenario. So let’s investigate the process step-by-step.

Initial Version

We are creating the first version of our application and decide that we need a User database table with the following columns: Name (primary key), LastAccessedDate

So we create a User class as follows:

[Table]
public class User : INotifyPropertyChanged, INotifyPropertyChanging
{
  private string name;
  private DateTime? lastAccessed;

  [Column(IsPrimaryKey = true, CanBeNull = false, AutoSync = AutoSync.OnInsert)]
  public string Name
  {
  get { return name; }
  set
    {
      NotifyPropertyChanging("Name");
      name = value;
      NotifyPropertyChanged("Name");
    }
  }

  [Column]
  public DateTime? LastAccessed
  {
    get { return lastAccessed; }
    set
    {
      NotifyPropertyChanging("LastAccessed");
      lastAccessed = value;
      NotifyPropertyChanged("LastAccessed");
    }
  }

  // Version column aids update performance.
  [Column(IsVersion = true)]
  private Binary version;

  // INotifyPropertyChanged Members
  // INotifyPropertyChanging Members
}

Read the rest of this entry →

Comparing Microsoft Marketplace and Apple App Store

August 12, 2010 in Windows Phone 7

Developers are starting to create games and applications in preparation for the Windows Phone 7 launch at the end of the year. Some applications that I am creating would appear in an Education category if Marketplace had such a category.  The App Store has an Education category.  So I thought I would do a quick comparison of the categories available in each location.

Marketplace App Store
Games Games
Entertainment Entertainment
News & Weather: News News
News & Weather: Weather Weather
News & Weather: Sports Sports
Productivity: Time Management

Productivity: Money Management

Productivity: Task Management

Productivity

Finance

Social Networks Social Networking
Lifestyle: Health &Fitness

Lifestyle: Recreation

Lifestyle: Photography

Lifestyle: Shopping

Lifestyle: More

Lifestyle

Healthcare & Fitness

Photography

Maps & Search: Maps

Maps & Search: Local Search

Navigation
Travel Travel
Business Center: Inventory

Business Center: Dashboards

Business Center: Services

Business Center: CRM

Business Center: Documents

Business Center: Data Collection

Business Center: Field Service

Business Center: Finance

Business Center: Health Care

Business Center: Manufacturing

Business Center: More

Business Center: Real Estate

Business Center: Time & Expense

Business Center: Unified Comms

Business
Reference Reference
Books Books
Tools: Utilities

Tools: Developer Tools

Utilities
 Communication  
  Education
  Medical

 

At first it appeared that Marketplace was missing four more categories than it was because of its use of nested categories.  It turns out that Marketplace is more fine-grained when it comes to Business and it has a Communication category that App Store doesn’t.  But Marketplace is missing categories for Education and Medical.  I think it is a huge oversight to not have a top-level Education category in Marketplace.

Now let’s compare the Games categories between the two stores:

Marketplace App Store
Action Action
Classic  
Board Board
Card & Casino Card

Casino

Education Educational
Family & Kids Family

Kids

Music Music
Driving Racing
Strategy Strategy
Simulation Simulation
Sports Sports
Word & Puzzle Puzzle

Word

  Adventure
  Arcade
  Dice
  Role Playing
  Trivia

 

It is surprising to see that App Store has 5 more categories than Marketplace with Classic being the only category that Marketplace has that App Store doesn’t.

I suspect that as more applications are developed for (or ported to) the Windows Phone 7 that developers will be asking Microsoft to add categories to Marketplace.

Summary: UI Design & Interaction Guide for Windows Phone 7

August 2, 2010 in Design, Windows Phone 7

image 

The July 2010 release of the UI Design and Interaction Guide for Windows Phone 7 is a document that all designers and developers of Windows Phone 7 applications need to become thoroughly familiar with.  It is a beautifully laid out 101-page document that discussed the phone’s capabilities, controls, and interactions.  As I read the guide, I took notes that I could refer to quickly as needed.  The result is a 10-page summary of the UI Design & Interaction Guide for Windows Phone 7.  I hope others find it useful.

Windows Phone 7 Presentation at Desert Code Camp 2010

May 17, 2010 in Silverlight, Windows Phone 7

Last Saturday I presented at my second Desert Code Camp.  The presentation PowerPoint and code for “Windows Phone 7 Silverlight MVVM App the Test-Driven Way” is now available.

View more presentations from Mark Tucker.

The code consists of two phone projects.  If you run the first, you will get the application UI. Running the second will bring up the test viewer.

Get the code here.

NOTE:

I told those attending the session that a video of the presentation would be available.  But due to an issue with Camtasia Studio, the video was not recorded.

Thanks again to all those who attended the presentation.  Let me know about the COOL apps you write for WP7.