apache / cordova-windows

[DEPRECATED] Apache Cordova Windows
Apache License 2.0
203 stars 171 forks source link

Cordova UWP Plugin with a UIElement #295

Closed JonasLaux closed 5 years ago

JonasLaux commented 6 years ago

Hey everyone , Currently i have a Cordova plugin and a UWP Class library. The library is using native UIElements for different UI workflows. Is there a way to display those UIElements? I read, that XAML views can't be displayed. Is there a workaround somehow? Maybe we can put the WebView in the background in fire up a native View. If yes, how do we get the current page, like in Android (cordova.getActivity())? Thanks in advance!

janpio commented 5 years ago

No, this is unfortunately not possible with Cordova Windows.

The generated project is a "UWP Javascript" project (`.jsproj), where the whole app is a webview, so you can't render anything behind oder above the main webview. All the APIs for XAML and related UI stuff are also just not available in this type of app.