uwp

Fixing scaled images in AppX manifest generated by Destop App Converter

烈酒焚心 提交于 2019-12-10 17:17:42
问题 I have used the Desktop App Converter to convert my Win32 application to .appx . The converter failed to convert application icons correctly. Icon transparency was lost. While I have reported this (bug?) to Microsoft, meanwhile I'd like to try to convert the icons manually. And I want to generate the .appx manually (using the makeappx ) in the end anyway. So I need to create the AppxManifest.xml . Problem is that the AppxManifest.xml generated by the Desktop App Converter is not valid. All

Bluetooth LE device cannot disconnect in Win 10 IoT UWP application

你。 提交于 2019-12-10 17:12:34
问题 I am trying to control the Bluetooth LE devices connect/disconnect in my Win 10 IoT UWP C# application, running on Raspberry Pi 3 SBC. The Win 10 IoT is Windows Insiders Preview build 10.0.17035.1000. When I start my application, it recognizes the advertising BLE device, successfully connects and communicates with it . Then I try to disconnect this device by applying the recommended procedure: device.Dispose(); device = null; GC.Collect(); and even stop and start again the

UWP share feature not working in Windows 10 Mobile

吃可爱长大的小学妹 提交于 2019-12-10 16:24:51
问题 I have created a very simple UWP application with a single button. Clicking it should show the built-in share popup to share a PDF file . The fact is that I have it working for Windows 10 (Desktop) but it doesn't work for mobile (the popup doesn't appear on the screen). The PDF file comes as a byte array (because it will come from a remote service). This is the code in MainPage.xaml.cs public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent();

Windows Universal App Continuous Dictation Without Network

泄露秘密 提交于 2019-12-10 16:20:09
问题 Following the samples provided here: https://github.com/Microsoft/Windows-universal-samples provides a great overview of some of the capabilities for UWP apps. But, the speech example seems to require an active connection to the internet. Does anyone know if this capability is possible on a disconnected corporate network? Thanks, JRF 回答1: Yes, Examples 1, 2, 5, 6 and 9 work Offline since they don't use the predefined SRGS scenarios. Look in the Folder: SRGS to see the SRGS. You will have to

Custom MarkupExtension in UWP

无人久伴 提交于 2019-12-10 16:07:42
问题 I would like to create my own MarkupExtension (like Binding , TemplateBinding ...) How can I do it for Universal Apps like I did in WPF? 回答1: I has a sad, but no. UWP doesn't currently support custom markup extensions. In some cases you can work around this by using bindings and converters. For example, to use a resource string (not using x:Uid ), I have a converter that doesn't actually need a value, only a parameter (the resource id). For example, I might bind as follows: <TextBlock Text="

Virtualisation not changing properties of new visible items

限于喜欢 提交于 2019-12-10 16:03:38
问题 I am currently using a custom Image object(a wrapper around <Image> object) in a listView. The properties of my custom Image object don't change when a new listview item is visible(realised). For instance if my listview (containing 30 items with different image urls and different text) has 3 items on the first scroll then the 10th item has the same image as the 1st item. The images repeat in the order [1-9][1-9][1-9].... But to my surprise the text is different in all 30 listViewItems. On

StackOverflowException on Getter C#

我的梦境 提交于 2019-12-10 15:43:54
问题 I am getting a StackOverflowException on the get; of a property in an abstract class. public abstract class SenseHatSnake { private readonly ManualResetEventSlim _waitEvent = new ManualResetEventSlim(false); protected SenseHatSnake(ISenseHat senseHat) { SenseHat = senseHat; } protected static ISenseHat SenseHat { get; set; } // This Line public virtual void Run() { throw new NotImplementedException(); } protected void Sleep(TimeSpan duration) { _waitEvent.Wait(duration); } } I am setting and

UWP - Bind TextBox.Text to Nullable<int>

流过昼夜 提交于 2019-12-10 15:36:54
问题 Is it correct that it is not currently possible to bind to any Nullable<T> in Universal XAML Apps? I found this link from 2013: https://social.msdn.microsoft.com/Forums/en-US/befb9603-b8d6-468d-ad36-ef82a9e29749/textbox-text-binding-on-nullable-types?forum=winappswithcsharp Stating that: Binding to nullable values isn't supported in Windows 8 Store apps. It just didn't make it into this release. We've already got bugs on this behavior for v.Next. But can it really be that this has not been

Get CPU, RAM and GPU information - UWP App

筅森魡賤 提交于 2019-12-10 15:28:49
问题 Is possible get the information of the CPU, GPU and RAM of a computer, in a UWP app? E show this information in a textblock. I want to know the processor model (for example: Intel Core i7 xxxx), and total RAM 回答1: I want to know the processor model (for example: Intel Core i7 xxxx), and total RAM If in this case, UWP app cannot meet your demands. In UWP you can not get the system CPU , GPU and RAM information since it is sandbox. For RAM, UWP can only access to information on current app's

The underlying provider failed on Open after deleting database files and sqllocaldb

二次信任 提交于 2019-12-10 14:43:47
问题 I am investigating my experience of the issue here When my Winforms XAF, Entity Framework Code First + Desktop Bridge application is installed via the Windows Store, it creates a database in the users directory. If I delete the files then I will get an error when I try to re-run the application. The underlying provider failed on Open This is because I have not dropped the database properly. As is explained in the linked issue. I tried the fix of sqllocaldb.exe stop MSSQLLocalDB sqllocaldb.exe