How can I import a windows.media.capture file into my WPF project?

I am really confused about the namespace of Windows Media, I would like to import a namespace to develop a camera function in Windows 8.1.

FYI, I developed Visual Studio 2013 and Windows 7 64 bit, I already tried to install Windows 8 Software Development Kits, but I still can not find the namespace.

Did I miss something?

+5
source share
2 answers

Finally, I developed the application for Windows 8.1 Table on Windows 7 x64 and want to share the experience that I had here.

Steps:

  • Edit .csproject in wpf application (Add <TargetPlatformVersion>8.1</TargetPlatformVersion> Inside <PropertyGroup> )

  • Add Windows Library Reference
    Add Windows Reference

  • Download some .Net Framework 4 library (System.Runtime.dll, System.Runtime.InteropServices.WindowsRuntime.dll, System.Threading and System.Threading.Task), usually in C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \

  • Download System.Runtime.WindowsRuntime.dll (C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework.NETCore \ v4.5)

But we cannot debug the application, because we have different working hours with windows 7, we can only create and deploy it on a Windows 8.1 tablet.

I implemented a camera function, working with GPS and a database using MSSQLServer Compact DB Express 2014.

Link:

+4
source

Windows.media.capture The minimum supported client is Windows 8, and the minimum supported phone is a Windows 8.1 phone.

Mark this MSDN article

0
source

All Articles