uwp

DEP0800: Cannot deploy UWP app after upgrading to VS 2015 Update 3

自作多情 提交于 2019-12-24 00:54:32
问题 I am having a very hard time getting my UWP app to deploy in debug mode after upgrading to VS 2015 Update 3. 2>Checking whether required frameworks are installed... 2>Framework: Microsoft.VCLibs.140.00.Debug/x86, app package version 14.0.24210.0 is not currently installed. 2>Framework: Microsoft.NET.CoreRuntime.1.0/x86, app package version 1.0.23819.0 is not currently installed. 2>Framework: Microsoft.VCLibs.140.00.Debug/x86, app package version 14.0.24210.0 is not currently installed. 2

Delete button on ListView items

醉酒当歌 提交于 2019-12-24 00:54:31
问题 I'm starting to develop for UWP. I'm trying to create a ListView populated with x:bind . Now I want to create a button on all single items for delete them. Something like Windows 10 Mail: I have created that: <ListView x:Name="listActivity" ItemsSource="{x:Bind list}" Grid.Column="0" Header="Activity List" HorizontalAlignment="Center" Width="auto" IsItemClickEnabled="True" ItemClick="showDel"> <ListView.ItemTemplate> <DataTemplate x:DataType="vm:Activity"> <Grid> <Grid.ColumnDefinitions>

Change settings in the Appxmanifest for differnt solution configuration (UWP project)

≡放荡痞女 提交于 2019-12-24 00:49:04
问题 I have JavaScript hosted UWP project with package.appxmanifest. Manifest has setting StartPage, I would like to change it based on testing/production build (they should point to the different urls). Looks that xml transformation doesn't work for such project types. Does anyone know how to solve this issue? 回答1: The way I've got around this in projects is to create the additional build configurations for the solution using the Configuration Manager (right-click solution -> Configuration

UWP ResourceDictionary is not being loaded when I add a second object to it

百般思念 提交于 2019-12-24 00:34:33
问题 I have a UWP application for Windows 10 with MVVM Light plugged in. I store a ViewModelLocator in the App.Resources. When I have just a ViewModelLocator in my App.Resources, everything works fine. <Application.Resources> <viewModel:ViewModelLocator x:Key="Locator" /> </Application.Resources> As soon as I add a String, Converter or something similar, application doesn't crash but the ViewModelLocator constructor is not being called anymore. No errors or exceptions being thrown, just

Understanding extended execution session in Windows Universal App (UWP)

若如初见. 提交于 2019-12-24 00:34:18
问题 I'm struggling to get extended execution session to work for my Windows Universal app. What I'm trying to achieve is the following scenario. The user wants to connect the phone with a device via Bluetooth. Currently, whenever the screen turns off or an incoming call comes or the user minimizes the app, the connection fails and we restart it on resume. I'd like to enable extended execution for this in-progress connection, such that the app continues the work even when minimized (suspended). I

Can't change default language of an assembly in Visual Studio 2017

╄→尐↘猪︶ㄣ 提交于 2019-12-24 00:33:36
问题 My application supports three languages: en, es, and fr. When I build my (clean, from a template) UWP application, I get the message: warning PRI257: 0xdef00522 - Resources found for language(s) 'en,es,fr' but no resources found for default language(s): 'en-US'. Change the default language or qualify resources with the default language. So then I go into the manifest and change the default language from en-US to en-GB and when I recompile I get: warning PRI257: 0xdef00522 - Resources found

COM port number from Windows.Devices.Enumeration.DeviceInformation

我是研究僧i 提交于 2019-12-24 00:29:58
问题 Is there a way to get the COM port number for a device through DeviceInformation ? I can see COM port numbers when I look at them through Device Manager. I just ran into a couple of devices that don't list the COM port number as part of the Name property. I plugged two of them in and there's no way to distinguish them from each other. Ideally, I'd like to see a COM port. Is there a different way to get that information? string _serialSelector = SerialDevice.GetDeviceSelector();

Windows App Certification Failed Universal Windows App 10

帅比萌擦擦* 提交于 2019-12-23 23:57:12
问题 I have developed a windows 10 universal app using Html,css and JS. For allowing inline scripts i am using ms-appx-web context and has set ms-appx-web:///login.html as start page in manifest. I have added ApplicationContentUriRules in manifest file. <uap:ApplicationContentUriRules> <uap:Rule Match="ms-appx-web:///" Type="include" WindowsRuntimeAccess="all" /> </uap:ApplicationContentUriRules> When I tried to create app package for my app in release mode, Windows App Certification Kit - Test

ReadLinesAsync in UWP from absolute file path

浪尽此生 提交于 2019-12-23 23:41:14
问题 I get error The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B) My code is public async void ReadFile() { var path = @"F:\VS\WriteLines.xls"; var folder = Windows.ApplicationModel.Package.Current.InstalledLocation; var file = await folder.GetFileAsync(path); var readFile = await Windows.Storage.FileIO.ReadLinesAsync(file); foreach (var line in readFile.OrderBy(line => { int lineNo; var success = int.TryParse(line.Split(';')[4], out lineNo);

UWP DeviceWatcher raises Added event for powered off device

帅比萌擦擦* 提交于 2019-12-23 23:30:33
问题 I created a device watcher: DeviceInformation.CreateWatcher(BluetoothLEDevice.GetDeviceSelectorFromDeviceName("...")); If the bluetooth device I'm looking for is powered off, an Added event is raised immediately followed by a Removed event. If it's powered on, I only get an Added event. Is the device somehow being cached if it was previously found by the watcher, and that's what causes the Added event to be raised despite being powered off? Is there a way to prevent this? 回答1: Is the device