mobileessentials / dynamicforms Goto Github PK
View Code? Open in Web Editor NEWMakes Xamarin.Forms more dynamic, by allowing loading of XAML for views, and Json for bi-directionally bindable view models
License: MIT License
Makes Xamarin.Forms more dynamic, by allowing loading of XAML for views, and Json for bi-directionally bindable view models
License: MIT License
Hello, and thanks again for this amazing funcionality. I successfully tested it on IOS and Android, but failed to get results on Windows Phone.
Looking at the source:
a. ConcurrentDictionary -> Not available in Windows Phone 8.0
This is easily replaced by an ImmutableDictionary, refer to this:
http://stackoverflow.com/questions/18367839/alternative-to-concurrentdictionary-for-portable-class-library
b. In DynamicParameterInfo i get an error related to ParameterInfo, which doesn't have "a constructor that takes 0 arguments". Windows Phone "mscorlib" implementation shows ParameterInfo as an abstract class without a constructor (other platforms implementations have it), so the exact same code fails. Perhaps i'm missing something, but the boilerplate code for DictionaryModel and JsonModel must be a little different for Windows Phone.
If i ignore DictionaryModel and JsonModel entirely and stick just to LoadFromXaml reflection, (i used DependencyService to create my own method just to test Windows Phone version) it works without problems.
Bottom line: do you have any clue regarding that DynamicParameterInfo problem stated above? If we can resolve it, i think all the problems will be solved.
What do you think?
Thanks,
Nuno
If i try to load an object with one or plus nested object in it, the "LoadFromXaml" method crash.
For example :
var grid = new Grid();
var xamlGrid = @"<?xml version=""1.0"" encoding=""utf-8"" ?><Grid xmlns=""http:=//xamarin.com/schemas/2014/forms"" xmlns:x=""http://schemas.microsoft.com/winfx/2009/xaml"" x:Name=""myGrid""><Image Grid.Row=""0"" Grid.Column=""0""/></Grid>";
grid.LoadFromXaml(xamlGrid);
I would like to use this project, but I'm not super experienced with Xamarin and Nuget and I don't know how to use an unbuilt nuget or build one. This project is particularly painful to use without a nuget release because it has multiple projects for platforms.
In particular DictionaryModel is the only example I've found of a dynamic bindable object in Xamarin.
Please, please do a new nuget build and release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.