RonaldWidha

percaya sama occam razor
See also: Other Geeks@INDC

May 2010 - Posts

Main-main dengan Windows Phone 7 SDK CTP April Refresh

imageSebelum kita nyiapin makan malam hari ini, aku sempet main-main dengan Windows Phone 7 SDK CTP April Refresh… Sesuai sama yang aku denger. Emulatornya berjalan di level hardware. Jadinya jalanin Windows Phone 7 (WP7) OS-nya secara penuh. Bahkan ada internet explorer.

The project template

Versi ini ada 3 Windows Mobile Silverlight project templates: WP App, WP List App and WP Class Library.

Aku iseng pake yang WP List App, di mana ada master detail screen dengan navigation hierarchy dan transition animation. 

image

Project template-nya keren banget. Ada folder buat ViewModels classes. Kayaknya MS mau nge-push Model-View-ViewModel (MVVM) lewat WP. View Modelnya di implementasi pake INotifyChangeProperty.

image

Silverlight Goodness

Aku pikir aku iseng2 ngeport samplenya silverlight Farseer physics engine supaya bisa jalan di WP7.

I seem to be able to get one of the Farseer Silverlight simple demo in less than an hour. I didn’t have to do anything much other than: correcting the casing of the keyboard enums (System.Windows.Input.Key.ENTER to System.Windows.Input.Key.Enter), changing System.Windows.Controls.UserControl to PhoneApplicationPage  and voila …

image

The mouse pick spring responded beautifully on the emulator (and it seem to react to multi touch too, at one point I saw multiple mouse pick springs ..or was it a glitch?).

Berikutnya kayaknya aku harus coba PhysicsHelper, seems like these guys have simplified a way to work with Farseer. It allows the translation from Silverlight objects directly into Farseer physics objects!

Share this post: | | | |