{"action":"created","issue":{"url":"https://api.github.com/repos/sq/JSIL/issues/969","repository_url":"https://api.github.com/repos/sq/JSIL","labels_url":"https://api.github.com/repos/sq/JSIL/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/sq/JSIL/issues/969/comments","events_url":"https://api.github.com/repos/sq/JSIL/issues/969/events","html_url":"https://github.com/sq/JSIL/issues/969","id":147575597,"number":969,"title":"XAML support","user":{"login":"0xFireball","id":15932100,"avatar_url":"https://avatars.githubusercontent.com/u/15932100?v=3","gravatar_id":"","url":"https://api.github.com/users/0xFireball","html_url":"https://github.com/0xFireball","followers_url":"https://api.github.com/users/0xFireball/followers","following_url":"https://api.github.com/users/0xFireball/following{/other_user}","gists_url":"https://api.github.com/users/0xFireball/gists{/gist_id}","starred_url":"https://api.github.com/users/0xFireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xFireball/subscriptions","organizations_url":"https://api.github.com/users/0xFireball/orgs","repos_url":"https://api.github.com/users/0xFireball/repos","events_url":"https://api.github.com/users/0xFireball/events{/privacy}","received_events_url":"https://api.github.com/users/0xFireball/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-11T22:40:11Z","updated_at":"2016-04-11T22:55:22Z","closed_at":null,"body":"Is there a way I can use XAML with JSIL? I am creating a C# to HTML5 GUI framework and would like it to be usable with XAML. Currently, layouts can be built like this:\r\n\r\n<pre>\r\n    public class MainForm : WebForm\r\n    {\r\n        public MainForm()\r\n        {\r\n\t\t\tControls = new Layout()\r\n        \t{\r\n        \t\tnew TextBlock()\r\n\t            {\r\n\t\t\t\t\tText = \"SharpJS WebForms Demo\",\r\n\t\t\t\t\tFontStyle = new FontStyle()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFontSize = 24,\r\n\t\t\t\t\t\tFontWeight = JSIL.Dom.Styles.FontWeight.Bold\r\n\t\t\t\t\t},\r\n\t\t\t\t\tTextAlign = JSIL.Dom.Styles.TextAlign.Center,\r\n\t\t\t\t},\r\n        \t\tnew TextBlock()\r\n        \t\t{\r\n        \t\t\tText = \"Enter some text:\",\r\n        \t\t},\r\n        \t\tnew TextBox(),\r\n        \t\tnew Button()\r\n        \t\t{\r\n        \t\t\tText = \"OK\",\r\n        \t\t},\r\n\t\t\t};\r\n        }\r\n    }\r\n</pre>\r\n\r\nI want to be able to specify this instead:\r\n<pre>\r\n&lt;WebForm x:Class=&quot;WebFormsTemplate.MainWFForm&quot;\r\n\txmlns=&quot;clr-namespace:ExaPhaser.WebForms;assembly=ExaPhaser.WebForms&quot;\r\n\txmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;\r\n\txmlns:controls=&quot;clr-namespace:ExaPhaser.WebForms.Controls;assembly=ExaPhaser.WebForms&quot;&gt;\r\n\t&lt;WebForm.Controls&gt;\r\n\t\t&lt;controls:TextBlock Text=&quot;Hello, World!&quot; /&gt;\r\n\t&lt;/WebForm.Controls&gt;\r\n&lt;/WebForm&gt;\r\n</pre>\r\n\r\nDoes anyone know how I can implement this?\r\nPlease do not mention [CSHTML5](http://cshtml5.com), as it is closed source and my project is open source."},"comment":{"url":"https://api.github.com/repos/sq/JSIL/issues/comments/208602608","html_url":"https://github.com/sq/JSIL/issues/969#issuecomment-208602608","issue_url":"https://api.github.com/repos/sq/JSIL/issues/969","id":208602608,"user":{"login":"0xFireball","id":15932100,"avatar_url":"https://avatars.githubusercontent.com/u/15932100?v=3","gravatar_id":"","url":"https://api.github.com/users/0xFireball","html_url":"https://github.com/0xFireball","followers_url":"https://api.github.com/users/0xFireball/followers","following_url":"https://api.github.com/users/0xFireball/following{/other_user}","gists_url":"https://api.github.com/users/0xFireball/gists{/gist_id}","starred_url":"https://api.github.com/users/0xFireball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xFireball/subscriptions","organizations_url":"https://api.github.com/users/0xFireball/orgs","repos_url":"https://api.github.com/users/0xFireball/repos","events_url":"https://api.github.com/users/0xFireball/events{/privacy}","received_events_url":"https://api.github.com/users/0xFireball/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T22:55:22Z","updated_at":"2016-04-11T22:55:22Z","body":"I have, however, been having trouble with the `dynamic` keyword. Is there anything special I should do when using `dynamic` with JSIL, like the `DynamicAttribute` or something?"}}