uwp

ZXing.Mobile.MobileBarcodeScanner.Cancel() not working

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:22:32
问题 I'm developing a mobile application on Xamarin Forms for UWP, Android and IOS on Visual Studio. I'm currently testing the app on my computer(Windows 10) and my phone (also Windows 10). I'm using Zxing MobileBarcodeScanner to scan multiple barcodes. When i press the back button i call the MobileBarcodeScanner.Cancel(). The only thing that it does is to close the camera. It doesn't depose the MobileBarcodeScanner's UI and i didn't found any solution for that. Can anyone help me or suggest a

Uwp binding control getting Width in viewmodel

末鹿安然 提交于 2019-12-11 04:18:16
问题 I'm currenly working on a UWP app using the map control. I'm doing this using mvvm (no framework). In my viewmodel I do a calculation on how many meters you actually see (width). I do this by calculating how many meters a pixel represent, and then I multiply this by the width of the control. And there is where the problem is. In WPF you had a mode OneWayToSource, which would set the source value and not change the target value. But this is missing in UWP. If I use a binding, I must set the

Bot framework “bot generates an error, an HTTP 502 response (”Bad Gateway“) ”

会有一股神秘感。 提交于 2019-12-11 04:13:55
问题 I'm trying to integrate UWP app with Bot framework using direct line, but bot framework website show me this error:"HTTP status code InternalServerError", so I try to debug, after researching, I found the error is in the "Send an activity to the bot" section, But I have no idea how to fix it. (if I use bot emulator to test, it can work, does it means the bot doesn't have any problem?) namespace BotClient { public sealed partial class MainPage : Page { BotService myBot; string ConversationId;

UI Virtualization of GridView and ListView in HubSection

不打扰是莪最后的温柔 提交于 2019-12-11 04:12:42
问题 I just noticed that if I put a GridView or ListView in UWP app inside a HubSection, the UI Virtualization breaks. Is my understanding correct? Thanks 回答1: Virtualization only happens for items outside the viewport. So it's important to place your GridView into a control that limits its size (e.g. Grid without auto-sized rows/columns) or set the size of the control. Wouldn't surprise me if your HubSection doesn't have a fixed size. The concept of a viewport is critical to UI virtualization

SQLite UWP Error with Mobile EMulator Windows 10

风格不统一 提交于 2019-12-11 04:08:58
问题 I am getting the following error when I run the Mobile Emulator while trying to compile and run a VS 2015 UWP app. The app runs fine when using the Local Machine or Simulator. System.TypeInitializationException was unhandled by user code HResult=-2146233036 Message=The type initializer for 'SQLitePCL.raw' threw an exception. Source=SQLitePCL.raw TypeName=SQLitePCL.raw StackTrace: at SQLitePCL.raw.sqlite3_open_v2(String filename, sqlite3& db, Int32 flags, String vfs) at SQLite.SQLiteConnection

UWP/XAML: How to inherit from the default styles using BasedOn?

只愿长相守 提交于 2019-12-11 04:03:36
问题 The official Microsoft article states: Modify the default system styles You should use the styles that come from the Windows Runtime default XAML resources when you can. When you have to define your own styles, try to base your styles on the default ones when possible (using based-on styles as explained earlier, or start by editing a copy of the original default style). I understand that you can copy and paste the default style from MSDN in order to "start by editing a copy of the original".

How to get the name of the Content Property in UWP?

混江龙づ霸主 提交于 2019-12-11 03:37:18
问题 I've tried with public string GetContentProperty(Type type) { var contentPropertyAttribute = type.GetTypeInfo().GetCustomAttribute<ContentPropertyAttribute>(); return contentPropertyAttribute?.Name; } But it always returns null. In WPF it works OK. 回答1: I have been looking at this for longer than I really should have, and still don't know the complete answer. I sincerely hope someone else comes along and provides a better option. What I've found so far is that on UWP, the call to

Symbols for kernelbase.dll could not be downloaded - UWP, Release build only, after Windows 10 update

随声附和 提交于 2019-12-11 03:33:48
问题 I've just updated my Windows 10 install to the latest anniversary update; this seems to have included: VS 2015 Update 3 (KB3022398) Update for Microsoft VS 2015 (KB3165756) Security update for MS Windows (KB3176495) Update for [blank] (KB2504637) I noticed that a UWP app I had developed (and successfully run previously) which is pinned to my Start menu seemed to drop it's tile graphic, and didn't start when I tried it. I then went to run it from VS (Release build) and got the following

Getting a list of already connected bluetooth devices on Windows 10

非 Y 不嫁゛ 提交于 2019-12-11 03:29:43
问题 This question might be stupid, and maybe the first accepted answer will be one that explains why this is not an intended use-case. Is it possible to get a list of BT devices, that are already connect to the machine? The machine is a Win10 box and using "pure" C#/.Net would be nice, although there is also 32feet. The BT device is not BTLE (low energy). The device is already connected via the normal Windows routines and the goal would be to get some kind of status information about the device

UWP and Xamarin Builds Failing with no output

China☆狼群 提交于 2019-12-11 03:07:17
问题 I have tried creating Android projects and cross platform projects that utilize Xamarin in Visual studio. When I build, even an empty project, it fails instantly without seeming to perform any work. There are no errors or warnings listed. The output window has the project name and: Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped When I start the project I get message boxes warning me about unexpected logger failures and sometimes the dialogs reference the MuxLogger. This is inconsistent