{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/534","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/534/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/534/events","html_url":"https://github.com/NativeScript/NativeScript/issues/534","id":98421660,"number":534,"title":"Content Property for XML declarations","user":{"login":"ligaz","id":19437,"avatar_url":"https://avatars.githubusercontent.com/u/19437?v=3","gravatar_id":"","url":"https://api.github.com/users/ligaz","html_url":"https://github.com/ligaz","followers_url":"https://api.github.com/users/ligaz/followers","following_url":"https://api.github.com/users/ligaz/following{/other_user}","gists_url":"https://api.github.com/users/ligaz/gists{/gist_id}","starred_url":"https://api.github.com/users/ligaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligaz/subscriptions","organizations_url":"https://api.github.com/users/ligaz/orgs","repos_url":"https://api.github.com/users/ligaz/repos","events_url":"https://api.github.com/users/ligaz/events{/privacy}","received_events_url":"https://api.github.com/users/ligaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T16:11:30Z","updated_at":"2015-07-31T16:11:30Z","closed_at":null,"body":"In order to simplify the XML declaration it might be a good idea to introduce the concept of Content Property. Here is an example:\r\n```xml\r\n  <Page.actionBar>\r\n    <ActionBar>\r\n      <ActionBar.actionItems>\r\n        <ActionItem text=\"{{ resources.signUp }}\" tap=\"signUpMenuItemTap\" android.position=\"actionBar\" />\r\n      </ActionBar.actionItems>\r\n    </ActionBar>\r\n  </Page.actionBar>\r\n```\r\ncan be simplified to just:\r\n```xml\r\n  <Page.actionBar>\r\n    <ActionBar>\r\n      <ActionItem text=\"{{ resources.signUp }}\" tap=\"signUpMenuItemTap\" android.position=\"actionBar\" />\r\n    </ActionBar>\r\n  </Page.actionBar>\r\n```\r\nThe idea is to annotate somehow the respective UI component so that the XML parser can figure out which should be the Content property and set the property value based on the XML element's content. \r\n\r\nA possible way to do this is to use decorators on the UI components."}}