[TIMOB-24099] Windows: Mix WinRT APIs with Titanium APIs
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-09T00:29:18.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 6.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2016-11-04T00:37:52.000+0000 |
Updated | 2017-05-02T02:13:51.000+0000 |
Description
Mix and match Hyperloop WinRT APIs and Titanium APIs together. For instance calling Titanium APIs from a native event callback, or calling Native APIs inside a callback registered with Titanium APIs. Also, we might want to mix and match
Titanium.UI.View
and its subclasses with any WinRT API expecting a Windows.UI.Xaml.UIElement
.
var win = Ti.UI.createWindow({}),
TextBlock = require('Windows.UI.Xaml.Controls.TextBlock'),
text = new TextBlock();
text.Text = "Hello, world!";
win.add(text);
win.open();
Attachments
File | Date | Size |
---|---|---|
error.png | 2017-04-19T20:30:05.000+0000 | 60261 |
https://github.com/appcelerator/titanium_mobile_windows/pull/899
[~kota] just adding to the ticket the error that was seen. For reference, this was the environment: Node Version: 6.10.1 NPM Version: 4.4.4 Appc CLI: 6.2.0 Appc CLI NPM: 4.2.9 Titanium SDK version: 6.1.0 Appcelerator Studio, build: 4.8.1.201612050850 Hyperloop 2.1.0 !error.png|thumbnail!
Just removed "Hyperloop 2.1.0" from fixVersion because this ticket is actually depending on SDK 6.1.0. There's nothing to fix for Hyperloop module itself.
This ticket can be closed once we resolve TIMOB-24595.