{ "id": "151172", "key": "TIMOB-19516", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-28T09:42:55.000+0000", "created": "2015-09-14T23:08:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "48995", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151173", "key": "TIMOB-19517", "fields": { "summary": "Windows: Native stub generation fails on 'float32' when requiring StackPanel", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2015-11-03T22:21:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "If you're using native API access and create something like a Windows.UI.Xaml.Controls.Button, you'd naturally want to set a text label for the button. But the Content property is a Platform.Object with the understanding it could be a String or it could be an UIElement (in fact it could be a UIElement, and if it's not then it's basically converted to a String representation, though how that's done isn't really talked about).\r\n\r\nWe need to understand this nuance of the API and support settings string values easily, i.e.\r\n{code}\r\nbutton.Content = \"Click me!\";\r\n{code}\r\n\r\nhttps://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.contentcontrol.content", "attachment": [], "flagged": false, "summary": "Windows: Support setting Content property of ContentControl subclasses with a simple string content", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 494, "state": "closed", "name": "2015 Sprint 20 SDK", "startDate": "2015-09-26T00:29:19.845Z", "endDate": "2015-10-10T00:29:00.000Z", "completeDate": "2015-10-12T05:33:30.964Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368885", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using: \r\n\r\nWindows 10 Pro\r\nAppc Core: 5.1.0-42\r\nAppc NPM: 4.2.1\r\nTi SDK: 5.1.0.v2015102819002\r\n\r\nWhen using the code below the app loads fine and the strings are set for both the button and textblock\r\n\r\n{code}\r\nvar Window = require('Windows.UI.Xaml.Window'),\r\n TextBlock = require('Windows.UI.Xaml.Controls.TextBlock'),\r\n Button = require('Windows.UI.Xaml.Controls.Button'),\r\n Canvas = require('Windows.UI.Xaml.Controls.Canvas'),\r\n window = Window.Current,\r\n canvas = new Canvas(),\r\n text = new TextBlock(),\r\n button = new Button();\r\n\r\ntext.Text = \"Text1\";\r\ntext.FontSize = 12;\r\n\r\nbutton.Content = \"Button text\";\r\n\r\ncanvas.Children.Append(button);\r\ncanvas.Children.Append(text);\r\n\r\nCanvas.SetLeft(button, 70);\r\nCanvas.SetTop(button, 140);\r\nCanvas.SetTop(text, 250);\r\nCanvas.SetLeft(text, 70);\r\n\r\nwindow.Content = canvas;\r\nwindow.Activate();\r\n{code}\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-11-03T22:21:36.000+0000", "updated": "2015-11-03T22:21:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }