Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.94 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.94 KB

Why need UWP extention

Universal Windows Platform (UWP). It has delicate UI by XAML. But it can not support a lot of WIN32 function. That is why we need UWP extention to unlimited it ability.

Project describe

  • Testing paltform: visual studio 2019
  • Minimum requirement: Win10, version 1809
  • Function describe: UWP through Windows Desktop Extensions for the UWP tool side loading WPF. Uwp can communicate with WPF, WPF can reply it.
  • Compile sample: UWP can not run at any CPU, and target should set Windows Application Packaging Project.
    image

UWP extention

  • This UWP_extention can side loading WPF by using FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync().

  • And should generate self-signed certification.
    image

  • Add references Windows Desktop Extensions for the UWP in UWP project.
    image

  • Modify Package.appxmanifest by adding extensions in Windows Application Packaging Project which is showed below.

<Extensions>
  <uap:Extension Category="windows.appService">
       <uap:AppService Name="SampleInteropService" />
  </uap:Extension>
	<desktop:Extension Category="windows.fullTrustProcess" Executable="WindowsFormsApp1\WindowsFormsApp1.exe" />
</Extensions>

Reference