3

I am thinking about how an application can be written to work on both Windows 7 Phone and IPhone, one option is MonoTouch.Dialog for most of the UI on the IPhone and then create a layer that will let the some code work on WP7.

Has anyone looked at doing this?

Community
  • 1
  • 1
Ian Ringrose
  • 51,220
  • 55
  • 213
  • 317

3 Answers3

3

I haven't seen a port to WP7 of MonoTouch.Dialog yet. But it could definitely be done.

MonoTouch Dialog is really two different things that work together: the first creates the structure of the data (either from reflection or creating elements manually) and the second actually displays that structure in a table.

Both parts are kind of mixed in the same code today, so separating those two would be the first step, so that the first part doesn't depend on MonoTouch.* at all. The second step would be to port the second part of the code to WP7.

That would be a really cool project, actually. It would be very useful.

Eduardo Scoz
  • 24,653
  • 6
  • 47
  • 62
  • 1
    MonoTouch.Dialog looks so match easier then Silverlight for simple “config” pages, that I can see uses for it on WP7 even if I did not wish to target the ITouch. – Ian Ringrose Sep 29 '10 at 09:30
  • Yup, I agree.. we really need help porting the project to other platforms. – Eduardo Scoz Apr 08 '11 at 13:46
1

There was an post about this recently on Monologue:

http://conceptdev.blogspot.com/2010/09/monotouch-meet-windowsphone7.html

Pete
  • 11,313
  • 4
  • 43
  • 54
0

You've got the right idea with regards to creating the custom UI's for each OS which access the same data.

However, Monotouch.Dialog is specific to iPhone (as the name, Monotouch suggests). There may be a similar port to WM7 which allows for easy creation of WM7 UI elements but I doubt it would be a fork from Monotouch.Dialog because it is specific to iPhone.

Luke
  • 3,665
  • 1
  • 19
  • 39
  • As the look of the UI has to be about the same due to small sceen size and Montotouch.Dialog come before WP7, a fork of Montotouch.Dialog does make sence. – Ian Ringrose Sep 28 '10 at 14:03
  • I wasn't suggesting using a fork from Monotouch.Dialog didn't make sense, merely that I doubt there will be a port of Monotouch.Dialog to the WM7. There may be a similar, WM7 specific, library which allows easy creation of WM7 UIs though – Luke Sep 28 '10 at 14:12