uwp

Avoid .NET Native bugs

泪湿孤枕 提交于 2019-12-22 10:57:19
问题 I spent the last year (part time) to migrate my existing (and successful) Windows 8.1 app to Windows 10 UWP. Now, just before releasing it to the store, I tested the app in the "Release" build mode (which triggers .NET Native). Everything seemed to work until I - by chance - noted a subtle but serious (because data-compromising) bug. It took me two days to reduce it to these three lines of code: var array1 = new int[1, 1]; var array2 = (int[,])array1.Clone(); array2[0, 0] = 666; if (array1[0,

How to specify parameters for the executable file in a StartupTask

梦想与她 提交于 2019-12-22 10:43:22
问题 When desktop applications set to run on startup, they usually start minimized to system tray. The common approach to implement this behavior is an special parameter for the executable when adding a shortcut to the Startup folder or registry: MyApp.exe /startminimized I need the same thing in a converted desktop app. Thanks to the StartupTask, I'm able to run the executable of the app on startup: <desktop:Extension Category="windows.startupTask" Executable="MyApp.exe" EntryPoint="Windows

Proper way to make a wizard in a UWP application?

邮差的信 提交于 2019-12-22 10:38:06
问题 I'm trying to implement a startup wizard for a UWP application. Preferably the wizard should open in a new window that is non-resizable and located at the center of the screen. I have already tried to use LaunchUriForResultsAsync in order to launch a dummy protocol inside our own app. This way, I could open a new non-resizable window, but it had fixed size (500x500) and position (left side of the main app). Trying to call TryResizeView or to set PreferredLaunchViewSize didn't have any effect,

parameter targetplatformversion cannot be null - visual studio 2015

浪尽此生 提交于 2019-12-22 10:36:32
问题 I have windows 10 installed laptop with visual studio 2015 on it. I am trying to create a new project of universal Windows phone application. I always get the error Prameter targetplatformVersion cannot be null. Follwing are the screen shot of my machine I have tried installation and re-installing the windows 10 sdk as well but no luck. Loading an existing project where I can see targetPlatformVersion already is also not loading and throwing same error. Any idea how I can track down this

How to troubleshoot remote UWP AppService problems?

不打扰是莪最后的温柔 提交于 2019-12-22 10:28:31
问题 I'm playing around with remote UWP AppServices in C# and I run into a very early roadblock: Getting a RemoteSystem instance. I followed the tutorial on https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/communicate-with-a-remote-app-service with my own code and I tried out the RemoteSystems sample as part of https://github.com/Microsoft/Windows-universal-samples Unfortunately, the result is always the same. First I request access to remote systems: RemoteSystemAccessStatus status =

UWP/WinRT: How to save and then restore a simple TextBox for resume from termination?

痞子三分冷 提交于 2019-12-22 09:47:52
问题 In this document describing the lifecycle of a Windows 10 UWP app, it states: Users now expect your app to remember its state as they multitask on their device. For example, they expect the page to be scrolled to the same position and all of the controls to be in the same state as before. By understanding the application lifecycle of launching, suspending, and resuming, you can provide this kind of seamless behavior. However, there doesn't appear to be much documentation on how this is

How to find error in 'The program .. has exited with code -2147483645 (0x80000003).'

限于喜欢 提交于 2019-12-22 09:39:03
问题 I have an uwp project testing on Win 10 iot core with raspberry pi 3. I do remote debugging on device. After a while the application crashes and only i can see in debug is that error.'The program .. has exited with code -2147483645 (0x80000003).' how can i see more meaningful things about this. The debug is stopping after that. Edit The output in vs 2015 no more message showing.Only that error. My project is about ble devices. I am making some read and write operations with using

Cannot connect to StreamSocketListener

匆匆过客 提交于 2019-12-22 09:28:02
问题 I'm trying to connect to a StreamSocketListener in my Windows 10 app. This is working if the client socket is inside the same app. But if I try to connect from another application (e.g. Putty) it doesn't work. After a few seconds putty says "Network Error: Connection Refused". Here is my sample code: public sealed partial class MainPage : Page { private StreamSocketListener listener; public MainPage() { this.InitializeComponent(); listener = new StreamSocketListener(); listener

iTextSharp with a Windows 10 Universal App

霸气de小男生 提交于 2019-12-22 08:44:42
问题 Is there a way to get iTextSharp to work with a Windows 10 Universal app? When I try to add iTextSharp version 5.5.8 through the NuGet package manager I get the following errors: iTextSharp 5.5.8 is not compatible with UAP, Version=v10.0(win10-XXX) Some packages are not compatible ith UAP,Version=v10.0(win10-XXX) Where XXX is the platform like x64 or x86. We use iTextSharp in a Windows 8 Store app to take a PDF template and then populate the fields with data provided by the user. The user

UWP - Load image in class library

喜夏-厌秋 提交于 2019-12-22 08:37:34
问题 I have a Universal Windows application that hosts a main menu. I want a plugin architecture, where the menu items are added from class libraries. But I can't seem to load images correctly. I can't get the ms-appx:/// working, and when I try to add the images as an embedded resource, it hangs: var assembly = typeof(CookModule).GetTypeInfo().Assembly; using (var imageStream = assembly.GetManifestResourceStream("My.Namespace.Folder.ImageName-100.png")) using (var raStream = imageStream