win-universal-app

Windows (Phone) 8.1 Camera Use

瘦欲@ 提交于 2019-12-10 15:06:59
问题 I am creating a Windows Universal application. I want to the user to be able to upload a picture and the user should have the option of taking one on the spot and sending that. I have this working using the MediaCapture api. However I can only seem to use one camera, so for example if my phone has a front and a back camera only the front camera is used. How would I be able to switch the camera that is in use? I had read something somewhere about using something like this: private static async

Fetching WiFi adapters list in Windows 10 app fails

三世轮回 提交于 2019-12-10 13:58:21
问题 I have a Windows 10 universal app and I am trying to get the list of WiFi adapters: var adapters = await WiFiAdapter.FindAllAdaptersAsync(); I have all the required permissions set up. This calls works once. Then when I close or kill the app, the call fails with An attempt was made to establish a session to a network server, but there are already too many sessions established to that server. (Exception from HRESULT: 0x800704C4) The error message is strange, I do not know how to interpret or

No default or neutral resource given for 'resource'

折月煮酒 提交于 2019-12-10 13:49:57
问题 I am building a UWP app which supports two languages (en and de). I have created both Resource.resw files and and a testfile.xml which is basically the datasource of my application. If I run the app directly from Visual Studio ( DEBUG or RELEASE mode) it's working fine, but once I install it from the store or sideload it to the device via WinAppDeployCmd.exe it does not load the resource from Resources.resw This is my file structure inside the Strings directory: I have the link to the

Preprocessor definitions for Universal Windows Platform?

ぐ巨炮叔叔 提交于 2019-12-10 13:37:19
问题 We have a C++ library, and we received a few requests to support UWP. I'm investigating the port now. I'm looking through Microsoft's C/C++ Preprocessor Reference | Predefined Macros for Visual Studio 2015, but I don't see anything related to UWP. I found How to: Use Existing C++ Code in a Universal Windows Platform App, but they look like the old defines for those Metro UI apps: WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP) WINAPI_FAMILY

Find all TextBox controls in UWP Page

房东的猫 提交于 2019-12-10 13:15:51
问题 I need to find all TextBox(es) that are on a UWP Page but having no luck. I thought it would be a simple foreach on Page.Controls but this does not exist. Using DEBUG I am able to see, for example, a Grid. But I have to first cast the Page.Content to Grid before I can see the Children collection. I do not want to do this as it may not be a Grid at the root of the page. Thank you in advance. UPDATE: This is not the same as 'Find all controls in WPF Window by type'. That is WPF. This is UWP.

Accuracy of Task.Delay

£可爱£侵袭症+ 提交于 2019-12-10 12:57:20
问题 I'm developing Windows 10 Universal App in C#/Xaml, I'm using await Task.Delay(delayInMilliseconds) to suspend a method for given time. My scenario is somewhat realtime, so it's very sensitive to time changes, and I need to make sure that when i suspend a method for let's say 8 millisecods it is suspended for 8 millisecods. I have noticed that the actual time span for which ** Task.Delay ** suspends the method differes from what is passed as delay parameter, for 1 up to 30 ms, the length of

SettingsPane not found in Windows 10 build

你离开我真会死。 提交于 2019-12-10 12:55:59
问题 I am building a new Windows 10 UWP (Universal Windows Platform) app using Visual Studio 2015. Actually I am porting my Windows 8.1 app, but I did so by creating a whole new project and manually pulling in each class. My app is failing to build with the following error: The type or namespace name 'SettingsPane' could not be found (are you missing a using directive or an assembly reference?) The C# file in question does have a using statement for Windows.UI.ApplicationSettings , and I also get

Is Windows Universal App for me? - UI Migration [closed]

。_饼干妹妹 提交于 2019-12-10 12:17:17
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I have a console app that does some Database management stuff connecting directly to them. It works for MsSqlServer and Oracle (for now). As you might know, using a console app is not so productive. So I wanted to port the UI part to a Desktop app. I have all core code in a

Get protocol activation args in “Project Centennial” app

浪尽此生 提交于 2019-12-10 12:16:15
问题 How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app? The problem is that the OnActivated method is absent so I can't get the IActivatedEventArgs . 回答1: I'm assuming you want to handle file types in which case you can check Environment.GetCommandLineArgs() as normal for arguments. The second argument will be the file or protocol activated. 回答2: How can I access the protocol activation arguments in a Winforms app that's converted into a UWP app?

Event on returning to app, after exiting by Windows key [UWP][Win10 Mobile]

狂风中的少年 提交于 2019-12-10 12:16:04
问题 I have big trouble finding right event for me - user during browsing files in my app [UWP Windows 10 Mobile app] can tap on it and then I launch it in default app by Windows.System.Launcher.LaunchFileAsync my app is 'minimzed' (just like by pressing Windows key) and user can interact with file in whatever app he wants. Now by pressing back-key he is returning to my app. Do you know any event which is trigerred now? I want to update the file (if it was changed) but I cannot find any event to