win-universal-app

Universal Windows project - HttpClient exception

感情迁移 提交于 2019-12-09 07:25:23
问题 I'm trying to implement REST client in Universal Windows project (in Windows 10 universal app) using HttpClient, but the following line: var response = _client.GetAsync(address).Result; throws an AggregateException with the following message: Access denied. A network capability is required to access this network resource More surprisingly, the request isn't event sent to server. How can I solve this problem? 回答1: Double click on the Package.appxmanifest file in your project. Click on the

How can i change the Package family name in uwp windows 10

偶尔善良 提交于 2019-12-09 00:36:16
问题 I want to change the key mentioned in fig., when i change the certificate file it changes to the another temporary key, and the publisher folder is creating with this key as name. but i want it as a meaningful name. is it possible.? if anybody knows, please help me. 回答1: Together, these elements declare the identity of your app, establishing the "package family" to which all of its packages belong. Individual packages will have additional details, such as architecture and version. The package

Network connection with UWP Apps

天大地大妈咪最大 提交于 2019-12-08 22:32:15
问题 I got two Windows UWP Apps. One of them (the "server") is running on a Raspberry Pi 2 on Windows IoT (10586.0). The other (the "client") is running on any Windows 10 device within the same network. What I want is to get the apps to "talk" to each other. For the moment I just want to send simple String from the client to the server. Later on, serialized data should be transferred trough the network. This is the code for the server App: namespace LCARSHomeAutomation { /// <summary> /// Eine

Attachment not appearing in Outlook 2016

被刻印的时光 ゝ 提交于 2019-12-08 19:48:00
问题 I created an email with Windows.ApplicationModel.Email.EmailMessage and I added an Attachment to it with the code below: var stream = RandomAccessStreamReference.CreateFromFile(file); var attachment = new EmailAttachment(file.Name, stream); emailMessage.Attachments.Add(attachment); await EmailManager.ShowComposeNewEmailAsync(emailMessage); In the default Mail client found on Windows 10, the attachment appears as an attachment. However the attachment does not appear at all in Outlook 2016 with

Constant Visual Studio Update Required popup for Monogame 3.4 and Windows 10 UAP project

穿精又带淫゛_ 提交于 2019-12-08 19:38:37
问题 So, I’ve been trying to launch Monogame template on Windows Phone emulator with Visual Studio, but I couldn’t get it work. This is what I have tried: In my project I have encountered a problem with creating a Monogame project for Windows UAP in Visual Studio. I have tried to create a project with a Wizard tool, but after project creation I got the message that I need to install Universal Platform Tools see picture number 1 after I pressed Install button an error has occurred see picture

How can I bind to a null value inside a template in a Universal Windows App?

好久不见. 提交于 2019-12-08 19:18:31
问题 Before you answer, look at this post. Getting an answer for that first may resolve the issue below. This is a problem that just started with Windows 10 (Universal Apps). In Windows 8.1, and every other XAML technology, this technique worked flawlessly. Here's the setup in a blank universal app project: 1. Static class with Attached Property Create a class that houses an attached property of type Brush . Put this anywhere in the project. public static class MySettings { public static Brush

Visual Studio 2015 Update 1 xaml designer not showing for UWP

a 夏天 提交于 2019-12-08 17:19:04
问题 Where disappeared XAML designer for Universal Windows app in Visual Studio 2015 Update1? It is working for wpf and window 8.1 apps and XAML designer is enabled in Tools->Option->XAML Designer 回答1: Change the Target Version to (10.0; Bulid 10240) 回答2: See the notification asking to update Windows - 回答3: I was having the same problem. Updated windows from windows update as instructed by the VS2015 notification and now it is fixed. 回答4: I assume that you are using VS2015 on an operating system

How to set time out for http client request operation in windows phone 8.1/Windows 8.1

大憨熊 提交于 2019-12-08 15:16:47
问题 How to set Timeout property to Windows.Web.Http.HttpClient operation. The code sample I used is below. public HttpClient httpClient; public CancellationTokenSource cts; public void SendRequest(addressUri,postrequestbody) { HttpHelper.CreateHttpClient(ref httpClient); cts = new CancellationTokenSource(); HttpRequestMessage msg = new HttpRequestMessage(new HttpMethod("POST"), new Uri(addressUri)); msg.Content = new HttpStringContent(postrequestbody); msg.Content.Headers.ContentType = new

MediaElement web Video doesn't stop buffering

☆樱花仙子☆ 提交于 2019-12-08 15:02:37
问题 I m using MediaElement to play a web video. When I left the page I noticed in the Task Manager that my app was still using 10% of network and didn't drop till it finished downloading video. I tried doing the following but no luck. //open link; mediaElement.Source = welcomeVideoURL; //when I leave the page OnNavigatedFrom() mediaElement.Stop(); mediaElement.ClearValue(MediaElement.SourceProperty); mediaElement.Source = null; Also tried to set the source to a dummy link but still no luck. I

UWP How to get ListviewItem Currently clicked and Previously clicked

本小妞迷上赌 提交于 2019-12-08 14:31:28
I am developing UWP App, I have a Listview bind with a class, wherein upto 10 items. Listview have a DataTemplate and a Usercontrol is inside this DataTemplate. I want to click on any item so the animation (storyboard) should start and the ColorBand should expand toward right and when I click on another item now the expanded (previously clicked) ColorBand should collapse and the current clicked item's ColorBand should expand. This approach can be possible if I put this ColorBand inside the Listviewitem Style and use the Visual State Manager, but actually I need to put the border color and