Last year I wrote a Sudoku using Silverlight 2. I'm now porting it to the Windows Phone 7. I started designing the UX. I decided to stick to the Metro design. It's really clean.
I'm using the ApplicationBar and Menu. I'm not totally sure which buttons to use. For now: pause, undo, redo and hint. I will have to create a ShakeTrigger which I will use to create a new game. I will have to postpone this until I have a real device to develop on. The accelerometer is hard to emulate.
I'm also planning to 'import' Sudoku's using the phone camera and OCR. But probably not in the first version.
The Windows Phone 7 supports single and multi touch gestures. I have implemented the Tap, Double Tap and the Touch&Hold gestures using Triggers. You can use them to trigger an Action in Expression Blend.
You first have to reference the GestureTriggersLibrary. Then you add an Action to a control using the Behavior assets. Finally you change the TriggerType using the New button.
The following example has tree TextBlock controls on with a ChangePropertyAction attached to it. This action sets the Text of the red TextBlock (textBlockResult) using the Tap, Double Tap or Touch and Hold GestureTriggers.
Yesterday I attended the Windows Phone 7 Developer Hub. The quality of the sessions was very good. They had some phone prototypes which you could play with during the breaks. I had the chance to play with an LG Windows Phone! It looks and feels great. I can't wait to get one!
It really inspired me to develop a new training for it together with my friend Loek. We plan to finish the training by the time Microsoft releases the first builds which we can run on real phones.
The content of the training will be:
-
Introduction: Windows Phone 7, Metro Design, Silverlight, XAML, Visual Studio 2010, Microsoft Expression Blend 4, Hardware, Emulator
-
Controls: Runtime Controls, 3rd Party Controls, Events, Fonts, Tips & Tricks
-
Graphics and Animations: Shapes, Brushes, PixelShader Effects, Resources, Transformations, Animations and storyboards, Key frames and Interpolation, Triggering and Programming Animations Methods, Tips & Tricks
-
UI Customization: Styling, Skinning (Templating), Styling and Skinning, Template Binding, Visual State Manager (VSM), Tips & Tricks
-
Data Binding: Element To Element Binding, StaticResource Binding, DataContext Binding, Binding to Collections, Blend Sample Data, MVVM, Converters, Data Validation, Data Annotations DataBinding from Code, DataGrid, Tips & Tricks
-
Programmability: Using and creating Actions/Triggers/Behaviors and Commands. Using Files, Base Class Library, Asynchronous Programming, Sound, Accelerometer, Location Service
-
Control Creation: Creating User Controls, Dependency and Attached Properties, States, Creating Templated Controls, Transition Effects, Tips & Tricks
-
Networking: HTTP (Download, Upload, Data Serialization: XML, JSON, RSS), SOAP (XML WebServices & WCF), OData (WCF Data Services), Push Notification, Tips & Tricks
-
Phone Applications: Navigation, WebBrowser, Pivot, Panorama, Lauchers, Choosers, Bing Maps
-
Deployment: Marketplace, Unit Testing
-
Closure: Summary, Resources, Books, Evaluation
If you can't wait you can prepare yourself with our Silverlight 4 training.