简体   繁体   中英

How to use Windows 10 features in WPF app

Is there a way to use features from Windows 10 in standard WPF app, built in Windows 8.1? I'm building app that will use built in webcam, that feature is required only when using Windows 10 tablet, desktop PCs won't use it. I've found "MediaCapture API" for Windows 10 and it would work perfectly, but I have no idea how to use it without creating new project dedicated for UWP.

MediaCapture API

You can use this subset of WinRT APIs in desktop applications.

Here is an instruction that shows how to reference winmd assembly from desktop application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM