-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide New Json Builder #4
Comments
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. |
Thanks @Alphapage I've transferred a very early prototype to a vNextDialog branch: https://github.com/slodge/MvvmCross/tree/vNextDialog 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 |
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:
and:
This would provide a cross platform way of declaring UIs.... I might even have a go at a WindowsPhone.Dialog....
The text was updated successfully, but these errors were encountered: