{ "id": "149837", "key": "TIMOB-19245", "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-28T17:14:04.000+0000", "created": "2015-07-22T00:00:20.000+0000", "epic": { "id": 143701, "key": "TIMOB-18467", "name": "Windows: Native APIs through JS", "summary": "Windows: Allow Usage of JavaScript against Native Windows APIs", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "49112", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151534", "key": "TIMOB-19593", "fields": { "summary": "Windows: Track native API wrapper conversion objects", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2015-11-17T19:52:32.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 a developer uses the native wrappers they currently cannot generate native UI components and then add those to a Titanium View/Window, and vice versa. We should support the ability to wrap native UI widgets as Ti.UI.Views when necessary, or unwrap Ti.UI.View native components to native wrappers when necessary. This is something Pedro's ti.reflex handles.", "attachment": [], "flagged": false, "summary": "Windows: Allow mixing Ti.Ui.View and Windows UI components", "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": 482, "state": "closed", "name": "2015 Sprint 17 Windows", "startDate": "2015-08-15T04:01:00.000Z", "endDate": "2015-08-29T03:59:00.000Z", "completeDate": "2015-08-28T13:51:24.221Z", "originBoardId": 144 }, { "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": "363849", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I'm seeing crashes on app startup when I mix and match Titanium UI Windows and a TextBlock natively. (win.add(textBlock);)\r\n\r\nNot sure what the root cause is yet.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-09-14T22:31:03.000+0000", "updated": "2015-09-14T22:31:03.000+0000" }, { "id": "370562", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.10240\r\nAppc core: 5.1.0-60\r\nAppc NPM: 4.2.1\r\nTi SDK: 5.1.0.v20151116164430\r\nAppc Studio: 4.4.0.201511130407\r\n\r\nUsing the below examples works with no issues\r\n\r\n\r\n\r\n{code}\r\nvar Window = require('Windows.UI.Xaml.Window'),\r\n Canvas = require('Windows.UI.Xaml.Controls.Canvas'),\r\n window = Window.Current,\r\n canvas = new Canvas(),\r\n image;\r\n \r\nimage = Ti.UI.createImageView({\r\n \timage: '/images/testImage.png',\r\n \theight: 50,\r\n \twidth: 100\r\n });\r\n \r\n \r\ncanvas.Children.Append(image);\r\n\r\nCanvas.SetLeft(image, 100);\r\n\r\nwindow.Content = canvas;\r\n{code}\r\n\r\n{code}\r\nvar win,\r\n TextBlock = require('Windows.UI.Xaml.Controls.TextBlock'),\r\n text = new TextBlock();\r\n\r\ntext.Text = \"Hello, world!\";\r\ntext.FontSize = 60;\r\n\r\nwin = Ti.UI.createWindow({});\r\nwin.add(text);\r\nwin.open();\r\n{code}\r\n\r\n{code}\r\nvar Window = require('Windows.UI.Xaml.Window'),\r\n Canvas = require('Windows.UI.Xaml.Controls.Canvas'),\r\n window = Window.Current,\r\n canvas = new Canvas(),\r\n text;\r\n\r\ntext = Ti.UI.createLabel({\r\n text: \"Hello, world!\",\r\n font: {\r\n fontSize: 60\r\n }\r\n});\r\ncanvas.Children.Append(text);\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-17T19:52:27.000+0000", "updated": "2015-11-17T19:52:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }