uwp

Issue building UWP app using MSBuild (GENERATEPROJECTPRIFILE)

我的梦境 提交于 2019-12-13 00:32:39
问题 I am trying to build a UWP app from the command-line in an effort to automate the builds from check-in to publishing to the store. Everything works fine when running the builds from within Visual Studio and when I create app packages, it all works fine (but takes too long, 15 minutes or so). While invoking msbuild per platform (x86, x64 & ARM), only ARM seems to fail with the following error: _CreatePriConfigXmlForSplitting "C:\Source\MyProject\src\MyProject\MyProject.csproj" (Build target)

PropertyChanged is Null UWP

你说的曾经没有我的故事 提交于 2019-12-13 00:24:21
问题 Okay, before you say anything I know multiple posts of this exist and I am searching for an answer for hours. I am a new user in Stack Overflow and fairly new to C# and UWP so please feel free to correct me. I am making an UWP store application for Windows 10. I using an API and I am connecting to a server. All of that happens in a separate page of my MainPage.xaml which is loaded in a Frame ! What I want to do is to show the string connectionStatus to the MainPage.xaml (through a <TextBlock/

Windows 10 uwp hide soft keyboard even when I set focus to a control

匆匆过客 提交于 2019-12-13 00:17:06
问题 I have a Windows 10 mobile uwp app and I am having two issues. First, I set focus to controls in the app. I do this by using the common call successfully Control.Focus(FocusState.Programmatic); However, there are some cases where this does not work. Most times it does but for example, when my page loads, I am trying to set an initial focus in one of the fields and it does not work. I have tried this call in two places. First, in the constructor for the page, after InitializeComponenets and

Unable to show Share UI in desktop bridge app

这一生的挚爱 提交于 2019-12-12 23:33:04
问题 In native UWP apps, we can show share UI by calling DataTransferManager.ShowShareUI method. DataTransferManager.ShowShareUI(); Calling this method in a desktop bridge app raises an exception: Element not found. This method cannot be called while the app is in the background That's kind of expected as the bridge app does not use the UI elements of UWP. So I tried to use way it should be done in native Win32 apps. In native Win32 apps, we can show share UI by calling DataTransferManagerHelper

Upload UWP app to Microsoft Store in all 3 platforms (x86, x64, ARM)

本小妞迷上赌 提交于 2019-12-12 23:04:46
问题 I have a 3rd party DLL (in all 3 platforms x86, x64 and ARM) referring in my UWP app. Due to this reason I have to change my reference manually each time I need to build my UWP app to specific platforms. Now I need to publish the app to the store but I can't select all platforms due to the manual handling of the 3rd party DLL. I tried building the app in release mode separately and tried to upload to the store but it does not allow. Only way possible is by selecting all 3 platforms in the

UWP how to show image from a network directory

[亡魂溺海] 提交于 2019-12-12 22:28:27
问题 I have tried many ways to set image source to a network directory in my UWP application. For example I have tried this example: BitmapImage bitmap = new BitmapImage(new Uri(@"\\venera\Mariner\747\03_WEDNESDAY\003\00 Flat B -\APR3783216-MED-BLK TAPE-GB-Apron.jpg")); UserImage.Source = bitmap; and bitmap.UriSource = new Uri(@"\\venera\Mariner\747\03_WEDNESDAY\003\00 Flat B -\APR3783216-MED-BLK TAPE-GB-Apron.jpg", UriKind.Absolute); UserImage.Source = bitmap; But none of them works. I ended up

How can I see what references are keeping my ref objects from being deleted in c++/cx?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 22:25:21
问题 I use myclass^ in one place in my UWP project, but I suspected that they weren't actually being deleted when they went out of scope. So I made a destructor that called __debugbreak() for myclass^ to make sure that was getting called. Instead of the 40 calls I should be getting for my project, I got one. To my understanding, types with hats (^) are basically shared_ptrs so if my object isn't getting deleted, it's probably because something else in the project holds a reference to it. How can I

UWP: The component cannot be found (Exception from HRESULT: 0x88982F50)

 ̄綄美尐妖づ 提交于 2019-12-12 22:19:18
问题 I sometimes get an error when i try to take a picture within my uwp app. This error is very hard to reproduce and happend a few min ago on desktop platform. I used a hovercam to retrieve the imagebuffer. public async Task<IBuffer> TakePhotoAsync() { Debug.WriteLine("taking picture..."); using (var stream = new InMemoryRandomAccessStream()) { try { await mediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), stream); Debug.WriteLine("captured to stream"); } catch

How to move the caret to after the end-quotes when typing XAML?

心已入冬 提交于 2019-12-12 22:08:29
问题 After typing something like: <StackPanel Name="someStackPanel" the caret is before the end-quotes. The only way I know of transferring the caret to the right of the end-quotes (so I can continue typing) is to press the right ( > ) button. But that button is rather inconvenient. (Note that this problem doesn't exist for drop-down options such as Orientation="Horizontal" Where after selecting Horizontal from the drop-down menu, the caret is placed after the end-quotes.) I tried return and tab

Why some UWP projects has project.json some doesnt has?

不想你离开。 提交于 2019-12-12 22:03:30
问题 I can see that some UWP projects has project.json file and all the NuGet packages entries are included in the project.json. But some UWP projects doesnt has project.json. NuGet packages entries are included in .csproj file itself. Why? 回答1: In earlier stages of developing .NET Core tooling project.json (developed by ASP.NET Core team) was seen as a better way to manage NuGet packages, but later decision was made to move back to .csproj for various reasons. So now UWP is storing references to