uwp

The package “apppxbundle” is taking a long time to process. Unable to push update to windows store [UWP] [ Xamarin.Forms]

蓝咒 提交于 2020-01-25 07:46:39
问题 I've been at this for past 2 days and I'm getting weird errors from the store. I'm trying to upload an update to my application "CoManga" via the store and it's not working out. I'm working on Xamarin.Forms (UWP) and before making the appxbundle, I made sure and "associated my app with CoManga" from my developer account. All the information over there matches and should work fine without any issues. Then I made a release of my UWP app, got the bundle and I tried to upload it to UWP. It said

UWP - InjectedInputKeyboardInfo how to send non-English keystrokes

杀马特。学长 韩版系。学妹 提交于 2020-01-25 07:34:12
问题 I have a UWP app in Visual Studio 2017. I'm trying to make a multi-language on-screen keyboard. Currently the English keystrokes are working fine, however any letter from other languages throws System.ArgumentException: 'Value does not fall within the expected range.' Here is the code that sends the keystrokes: public void SendKey(ushort keyCode) { List<InjectedInputKeyboardInfo> inputs = new List<InjectedInputKeyboardInfo>(); InjectedInputKeyboardInfo myinput = new InjectedInputKeyboardInfo(

How to set hard coded HTML in UWP WebView

℡╲_俬逩灬. 提交于 2020-01-25 07:31:05
问题 I have some hard coded html: string myHtml = "<html>some html</html>" How can I set it as my WebView source? Something like this: webView.HtmlSource = myHtml; 回答1: In general, we use WebView.NavigateToString(htmlstring); to load and display html string. For source of WebView, only apply for Uri parameters. But you can create an attached property like HtmlSource for WebView and when it changes to call NavigateToString to load. public class MyWebViewExtention { public static readonly

Deploy/debug app to windows 10 mobile phone via USB

左心房为你撑大大i 提交于 2020-01-25 06:59:24
问题 I'm trying to create an UWP app for some old windows 10 mobile phones and deploy/debug them via USB. I'm using Visual Studio 2017 and have set the target version to Build 10586 (to stay below 14393). When I try to debug (freshly created UWP blank app, settings: Debug, ARM, Device), the deployment fails with this error: DEP0100: Please ensure that target device has developer mode enabled. Could not obtain a developer license due to error 800704C7. Just before the failure the developer settings

Convert Image to Base64 string

杀马特。学长 韩版系。学妹 提交于 2020-01-25 01:29:06
问题 I am trying to convert an Image file to Base64 string in UWP with StorageFile Here's the method I have: public async Task<string> ToBase64String(StorageFile file) { var stream = await file.OpenAsync(FileAccessMode.Read); var decoder = await BitmapDecoder.CreateAsync(stream); var pixels = await decoder.GetPixelDataAsync(); var bytes = pixels.DetachPixelData(); return await ToBase64(bytes, (uint)decoder.PixelWidth, (uint)decoder.PixelHeight, decoder.DpiX, decoder.DpiY); } and ToBase64 goes like

FileInformationFactory GetVirtualizedItemsVector() does not update the file path when folder name is changed in UWP

ⅰ亾dé卋堺 提交于 2020-01-25 00:13:10
问题 I am using for a UWP app the FileInformationFactory to retrieve Virtualized vector of Items, which can be either a folder or a file information. I query the following folder structure on my desktop: F0/F1/File1.png Hence, I have a folder F0 , which includes a folder F1 and the latter has a file File1.png . I set the IndexerOption.DoNotUseIndexer (code below), and that is at the origin of the issue. I need to use this option such that I can scan non-indexed USB drives. The result of the query

Loopback Isolation Removal not working For UWP App

徘徊边缘 提交于 2020-01-24 21:20:20
问题 So I setup a simple StreamSocketListener in my UWP StreamSocketListener listener = new StreamSocketListener(); public async void StartServer() { await listener.BindServiceNameAsync("8282"); listener.ConnectionReceived += async (s, a) => { using (var output = a.Socket.OutputStream) { using (var response = output.AsStreamForWrite()) { var html = Encoding.UTF8.GetBytes( $"<html><head><title>Background Message</title></head><body>Hello from the background process!<br/></body></html>"); using (var

How can I post image from UWP to .NET core web api?

谁都会走 提交于 2020-01-24 20:06:53
问题 Now I have configured for UWP photo post to web api part which is using HttpClient. Uri uri = new Uri("http://localhost:50040/api/Upload"); IInputStream inputStream = await photoFile.OpenAsync(FileAccessMode.Read); HttpMultipartFormDataContent multipartContent = new HttpMultipartFormDataContent(); multipartContent.Add(new HttpStreamContent(inputStream), "myFile", photoFile.Name); Windows.Web.Http.HttpClient newclient = new Windows.Web.Http.HttpClient(); Windows.Web.Http.HttpResponseMessage

UWP - Change of Languages

浪子不回头ぞ 提交于 2020-01-24 10:59:05
问题 I am trying to change a language at a UWP app so that the my x:uid objects related and my ResourceLoader based objects would change. I am using, as recommended at other Q&A : ApplicationLanguages.PrimaryLanguageOverride = newLanguage; Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView().Reset(); Windows.ApplicationModel.Resources.Core.ResourceContext.GetForViewIndependentUse().Reset(); Frame.Navigate(this.GetType()); However, everything that is controlled directly by

How to change debugger settings for debugging individual unit tests from VS 2015 Test Explorer

岁酱吖の 提交于 2020-01-24 10:36:08
问题 Test Explorer allows to run tests under debugger and I use it quite often for debugging single tests. However debugger settings used in this case are different from that set for the test project and prevent efficient debugging. I would like to limit debugging to managed mode only for UWP class library while debugger starts always in mixed native/managed mode. This prevents any debugging as .NET Core does not support mixed mode debugging. I work on VS 2015. After checking and testing all