Open Camera Application From My App in Windows 8.1 - c#

Is there any way to open Windows 8.1 native camera application programatically in c#.

Basically WinRT doesn't allow that, Metro Apps run in the highly sandboxed environment, you can't open a a Metro nor a desktop one directly, you may find using the Launcher class from Windows.System.Launcher somehow helpful , take a look at this thread :
http://social.msdn.microsoft.com/Forums/windowsapps/en-US/b38bb2de-2a05-4f7d-8547-48b9759d72d4/can-i-use-windowssystemlauncherlauncherdefaultprogramuri-to-invoke-another-metro-style-app?forum=winappswithhtml5

Related

can .net windows forms project and .net UWP project be merged?

I have a GUI windows form app written in .NET .
And I have a new .NET UWP app that has UWP camera and UWP sockets.
Can I port the UWP camera and UWP sockets code into the .NET Windows form app project?
(If I went the other way, it probably will take much longer to port the Windows forms GUI into a UWP GUI.)
WinForm project can use most new Windows 10 API designed for UWP. Check this post.
If went the other way, you need to port bit by bit of the existing GUI, so it all depends how complex your WinForm GUI is.
The first challenge is you are using XAML, another language instead of C# to write UWP UI.
Some WinForm controls you are using just do not have a UWP counterpart, you need to turn to the community to check if there are alternatives that are freely available l, or purchase proprietary product, or write your own control.
No. WinForm and UWP projects are very different. UWP are compiled to native code and WinForm are compiled to IL that are then run by the CLR. Microsoft is currently working on the ability to put a UWP control inside a WinForm application. You can check it out here.

Windows phone 8.1 Silverlight app on windows 10 tablet

I have a Windows phone 8.1 Silverlight application.
Now I need to make it run also on windows 10 phones and tablets. I checked and the app is available on windows 10 phones, even if deployed for windows 8.1 but it seems like I can't install it on windows 10 tablets.
My question is pretty simple:
Is there a "fast way" for converting the 8.1 project to UWP?
Can I deploy my app for tablets without re-writing all the code?
Thanks all
This question is oddly similar to one that I answered just yesterday. It's not really a duplicate so I will restate the answer here along with a link to the other question (1)
Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. There are a lot of similarities but also a lot of breaking changes that require some manual changes.
here is Microsoft's guidance for this particular upgrade path.
From the article above:
Note This guide is designed to help you port your Windows Phone Silverlight app to Windows 10 manually. In addition to using the information in this guide to port your app, you can try the developer preview of Mobilize.NET's Silverlight Bridge to help automate the porting process. This tool analyzes your app's source code and converts references to Windows Phone Silverlight controls and APIs to their UWP counterparts. Because this tool is still in developer preview, it does not yet handle all conversion scenarios. However, most developers should be able to save some time and effort by starting with this tool. To try the developer preview, visit Mobilize.NET's website.
[1] Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app?

Control windows volume in Lock Down / alternative shell

I have take the example detailed Here to enable the control of the windows volume from within my WFP app. It works fine under normal conditions.
The app itself will be run while the device (a ruggedized tablet running Win 8.1 IND) is in lockdown mode. Essentially the windows explorer shell is not loaded and our applications become the 'shell', to prevent tinkering / breaking out of our app.
When running in lockdown mode, I cannot control the volume using the method detailed in the link above.
how can this be achieved?
ok, found the answer. Need to use the Core Audio API.
https://blog.sverrirs.com/2016/02/windows-coreaudio-api-in-c.html

Universal Windows Library (UWP) Way to take screenshot?

I would like to create a ScreenCaptureLib.dll which is intended to be built for Universal Windows.
We already have the following using Windows.Forms:
https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib
Obviously none of the Windows Forms code does not work and I would like some pointers in the right direction to get started.
You may follow the official document for Record the screen with ScreenCapture, but please notice that:
The ScreenCapture API is only available on mobile devices.
And for now there is no API can be used directly to capture the screen on a desktop from an UWP app. However, as a workaround method, we can render the XAML tree to a bitmap, to do this, please refer to Capturing Snapshot in Windows 8.1 Store App.
You may also submit a request to add this new feature for developing through the Windows Feedback tool.
Update:
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.

Will Xamarin app run on windows phone?

What is the best way to write for iPhone, Android and Windows phone ? If I'm writing in C# and using Xamarin will my app run on the windows phone as well ?
You can share any code written with the BCLs that are included with Xamarin (or any library built on top of those).
You will then need to write a custom Windows Phone application that uses those libraries. It is easiest to think of this as the "UI" of your application. You cannot share UI code between iOS, Android, and Windows Phone.
The MWC app is probably the best example of how to architect a solution that spans the 3 platforms.

Categories

Resources