microsoft / ailab

Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
https://www.ailab.microsoft.com/experiments/
MIT License
7.71k stars 1.39k forks source link

How to download XAML code ? #55

Open npagare opened 6 years ago

npagare commented 6 years ago

Hello, Thank you for this awesome feature. How to change the option for the generate code language from HTML to XAML ?

Thanks.

tarasha commented 6 years ago

@macastejon can you please help IoTFlier with this question?

macastejon commented 6 years ago

Hi, this option is not still implemented, but I can show you the way. If you follow the code there is a step that generates a file called groups.json that contains the information of the spatial distribution of the detected elements. Basically it contains information of how to position the elements in a grid. You should then use this info to generate the final output in XAML. Should't be hard to go through the groups.json file and generate the corresponding XAML. Please let me know if you need more help or samples on how to proceed.

npagare commented 6 years ago

Hi @macastejon, I appreciate your input.

Samples will be really good.

Is there a known limitations / scope of XAML (Xamarin Forms) controls used it the code generation?

Is Grid the highest level of XAML container used for all XAML snippets?

Thanks,

npagare commented 5 years ago

Hi @macadada , @tarasha , any update on the XAML creation?

Thanks