Opening UWP in a UWP application

Maybe a very strange request ...

We are exploring the creation of an application for Windows 10 UWP that can open websites and other UWP applications in it. I think the main question ...

Windows 10 UWP has a control in which you can open another UWP (e.g. WebView for UWP?)

The idea (we have not started coding for so long, because we are currently using "blueprinting") to implement the application using SplitView (control hamburgers), each button will change the frame to a web link or a link to another UWP application - for example, Weather .

When the user clicks on one parameter, this will change the main frame for accessing this content ... without exiting the application - think of it as a locked kiosk (secure).

I assume that there is no ready-made solution, but thought that I would ask :)

Thanks! Matt

+4
source share
3 answers

I do not think that what you are looking for is possible if I understand you correctly. In fact, the key word in the UWP application model is isolation or containerization of applications.

This does not mean that applications do not interact with each other - the UWP application model allows applications to interact with URL-based activation / linking; perhaps this is what you need to study if it meets your requirements. You can start with here for some background information.

, , , splitview ( ). - URL- .

+6

, , Windows .

, , , uri msdn , uri, .

var options = new Windows.System.LauncherOptions();
options.PreferredApplicationPackageFamilyName= "Contoso.URIApp_8wknc82po1e";
options.PreferredApplicationDisplayName = "Contoso URI Ap";

// Launch the URI and pass in the recommended app 
// in case the user has no apps installed to handle the URI
var success = await Windows.System.Launcher.LaunchUriAsync(uriContoso, options);
0

, :

, . . → .

(Universal Windows). , , YourAppName.Core. *.cs. YourAppName, App.xaml, App.cs, Properties, References, TemporaryKey, Manifest project.json, YourAppName.Core. YourAppName YourAppName.Core *.xaml *.cs.

YourAppName. , , , MainPage, . , → "YourAppName.Core". , App.cs MainPage. MainPage.xaml :

<Grid>
    <YourPageName that was previously in App.cs/>
</Grid>

Launch the app. If it works just like everyone else, everything is in order.

Now go to the main application into which you want to embed the application described above and just make a link to your YourAppName.Core library. Just use it in your XAML anywhere, or create instances from code.

0
source

Source: https://habr.com/ru/post/1614278/


All Articles