uwp

UWP App Package created with Visual Studio 2015 Update 3 won't install on phone

主宰稳场 提交于 2019-12-20 04:10:05
问题 Release mode appxbundle file created with Visual Studio 2015 Update 3 won't install on windows phone. This was working in Update 2. Installed field medic on phone and eventually found the error: Windows cannot install package 5207311c-9598-4622-9d3d-ff43d5fceb38 because this package depends on another package that could not be found. This package requires minimum version 1.4.24201.0 of framework Microsoft.NET.Native.Runtime.1.4 published by CN=Microsoft Corporation, O=Microsoft Corporation, L

Visual Studio 2015 Designer Crashes in all Win10 UAP projects (“The app didn't start.”)

混江龙づ霸主 提交于 2019-12-20 04:04:22
问题 The xaml visual designer crashes for all WIN10 UWP projects, including ones created from the standard template with no code added. I don't know when it started because I thought it was a problem with my project until I tried creating some new ones. The error is given below and in the screen shot at the bottom. System.Runtime.InteropServices.COMException The app didn't start. (Exception from HRESULT: 0x8027025B) at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage

Setter.Target give me an error with “RelativePanel.AlignHorizontalCenterWithPanel”

北战南征 提交于 2019-12-20 03:52:21
问题 I am develop an UWP app, and I am using Template10. I have an TextBlock , that in VisualStateNarrow I want it RelativePanel.AlignVerticalCenterWithPanel="True" and in NormalMinWidth I want RelativePanel.AlignHorizontalCenterWithPanel="True" but I can not do this! <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="AdaptiveVisualStateGroup"> <VisualState x:Name="VisualStateNarrow"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="{StaticResource NarrowMinWidth}"/> <

Turn off soft keyboard in uwp app for windows

旧街凉风 提交于 2019-12-20 03:36:28
问题 I have an uwp app running on a handheld device running windows 10. The handheld device has a barcode scanner and all input for the app is made using this. So I want to prevent the keyboard coming up when a user moves the focus to any of the textbox controls. To a large extent, the focus is handled programmatically - and I have prevented the keyboard coming up in those instances with PreventKeyboardDisplayOnProgrammaticFocus=True . But the user does need to move the focus himself sometimes and

How do you change the Style of the PivotHeaderItem(s) within a Pivot

为君一笑 提交于 2019-12-20 03:28:07
问题 I have looked at Apply PivotItemHeader style to PivotItem in UWP but I haven't been able to apply the suggestions to my code. I'm trying to change the Style of the PivotHeaderItem(s) within a Pivot based on whether or not the device is Desktop or Mobile. I have 2 explicit styles in my Resource Dictionary. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Test"> <Style x:Key=

How to get all sub folders and its files - UWP

喜你入骨 提交于 2019-12-20 03:23:18
问题 I have a fixed folder in desktop called student_names. it contains sub folders and each sub folders contains its files. Now I want to store those sub folders and its corresponding file names in an array list. how is it possible? 回答1: UWP Applications cannot directly access a folder (except application folders) without the user explicitly providing access to the folder (atleast once). So in order to always be able to read/write to a specific folder you need to first ask user to select the

Can I Use WinAppDeployCmd install, update on pc itself

一曲冷凌霜 提交于 2019-12-20 03:15:04
问题 I have my .appx file for installation in folder. I can install it by double clicking the file. But i am looking for a way to install it using WinAppDeployCmd for installation and also for update process. WinAppDeployCmd install -file "C:\release\file.appx" -ip 192.168.0.1 192.168.0.1 - is the ip of the pc itself. I am getting error : 0x80131500 - The network event being waited on triggered an error. 0x8007274D - The network event being waited on triggered an error. I am using windows 10. Am i

Access to file denied on app's second run

倖福魔咒の 提交于 2019-12-20 03:08:39
问题 I'm facing a weird issue, when trying to access file on SD card with code: var path = @"D:\Test\test.txt"; try { StorageFile file = await StorageFile.GetFileFromPathAsync(path); } catch (Exception ex) { Debug.WriteLine($"File access failed due to {ex.Message}"); } path = @"Test\test.txt"; StorageFile file2 = await (await KnownFolders.RemovableDevices.GetFoldersAsync()).FirstOrDefault().GetFileAsync(path); The file is on SD card, I've declared RemovableStorage capability, and added

UWP NetworkConnectionChanged Event

半腔热情 提交于 2019-12-20 02:45:20
问题 I am developing a UWP App and need to do some things after I lost network connection or the device connected again. Is there any event firing after a connection is lost or connected? I searched the www but anything I found was for WP8... I need this for UWP on Windows 10. I tried to use NetworkInformation.NetworkStatusChanged . 回答1: I had the same problem too. This article (and the whole website) has helped me alot: http://windowsapptutorials.com/windows-10/how-to-check-for-network

UWP BitmapImage SetSource from MemoryStream hangs

六眼飞鱼酱① 提交于 2019-12-20 02:44:18
问题 In my UWP app i store images in an SQLite db in form of byte[]. Then as i retrieve my objects from the db i bind them to a GridView data template which has an Image control. As i cant bind the Image's Source directly to the array, so i have created a BitmapImage property in my object's class to bind the Image control to: public BitmapImage Icon { get { using (var stream = new MemoryStream(icon)) { stream.Seek(0, SeekOrigin.Begin); var img = new BitmapImage(); img.SetSource(stream