Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide New Json Builder #4
I'm thinking of providing a new JSON module allowing elements like:
to be declared something like:
This would be built using reflection - so more automagically extensible than the json in MT.Dialog.
The code would include options to bind properties and events like:
and Mvvm Binding (with MvvmCross format) like:
This would provide a cross platform way of declaring UIs.... I might even have a go at a WindowsPhone.Dialog....
Just an update on this - I just (this morning) have this sample below working.
Obviously there is still a need for:
However, I think the basic idea should work pretty well across Android.Dialog and also the mvvmcross fork of MonoTouch.Dialog.
And I do intend to add a WinRT.Dialog and a WindowsPhone.Dialog too...
If anyone's interested, then post here or on a relevant post on http://slodge.blogspot.co.uk
And have now added custom property handlers too which allow me to write things like:
That routes the Click property to an
where Actions has been filled using:
Next step... integrating with MvvmCross and with MonoTouch.Dialog too...
It would be great to use a Portable UI integrated with MvvmCross. You will loose designer facilities I think, but if there are few limitations and a lot of Dialog Controls which respect the same layout or behavior for each platform and screen size, you are done. I'm waiting WindowsPhone Dialog for my first test, but give a try to monodroid Dialog as soon as ICommand will be done.
I've transferred a very early prototype to a vNextDialog branch:
Basically, the Details, New and Edit pages are all now working MonoDroid Dialogs - see:
Only required StringElement and EntryElement to be working.
This is not the final source by a long way - but the idea looks sound :)
The JSON is now extended to Menu's too :)
Currently progressing over on: http://slodge.blogspot.co.uk/2012/10/more-progress-on-portable-ui-prototype.html
This code is mainly now on: https://github.com/slodge/MvvmCross/tree/vNextDialog