win-universal-app

How to Add Web Reference for UWP in VS 2015?

我怕爱的太早我们不能终老 提交于 2019-12-11 10:06:01
问题 I am trying to migrate my code from normal wpf application to Universal Windows Platform. Previously I have used VS 2012 for Developing my WPF application And its working fine. Now I want to use the same application for mobile also.I found UWP as a solution for it. Now I am using vs 2015 . But here in vs 2015 I am unable to find Web Reference Option I am able to see only Service Reference. Actually My situation is I am Dynamically taking Ip Address and port number from User Based on the

Multiple resolutions on Windows Phone 8.1

你说的曾经没有我的故事 提交于 2019-12-11 09:36:38
问题 I'm moving to WP8.1 and there are different resolutions to be supported so I need to create the correct resources for each scaling factor. Following this guide I've found out that I can use a simple naming conventions and the appropriate image will be automatically loaded without having to manage it from code. What the guide doesn't say, and I can't seem to find it anywhere, is what the original size should be. I need to know which one is the resolution that corresponds to the 100 scaling

“Access is denied” In UWP (C#) when trying to run desktop extension App

扶醉桌前 提交于 2019-12-11 09:34:27
问题 I'm trying to run a tutorial code for FullTrustProcessLauncher, In order to run desktop Application from UWP (As I asked in Run python script from UWP). The source code is found here: UWP-FullTrust. Im running the first example: UWP_FullTrust_1. It's compiles all ok but when I run the console command (Click the button) I get in the line await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(); this exeption: "Access is denied. (Exception from HRESULT: 0x80070005 (E

How to convert WP silverlight 8.1 project to WP 8.1 project?

无人久伴 提交于 2019-12-11 09:10:04
问题 I had a WP 8 project which I wanted to convert to WP 8.1 so I can add a Windows 8.1 project to it to create a Universal App. But when I retargeted my project it was converted to WP Silverlight APP, so I can't find the "Add Windows 8.1 Project" option. Any ideas how I retarget my project to be just WP 8.1 project? 回答1: You can only Retarget Silverlight 8.0 application to Silverlight 8.1 application. You can't retarget Silverlight 8.0 to Runtime 8.1 application. But you can migrate your

How to detect running on a real device?

亡梦爱人 提交于 2019-12-11 09:06:06
问题 I am working on a universal application, and I am trying to detect whether it runs on a desktop computer or on a real IoT device (Raspberry PI 2). Following the recommendation, I am trying to use API contract checks, however this returns true even on the desktop machine: ApiInformation.IsApiContractPresent( "Windows.Devices.DevicesLowLevelContract", 1, 0 ); Obviously when I try to call GpioController.GetDefault() , it fails on the desktop, but strangely with a FileNotFoundException : "The

WebApp: Cortana loads app, but how can I deep link into the web app with javascript?

可紊 提交于 2019-12-11 08:49:14
问题 For Windows 10: I have started a simple grocery list hosted web application. I went through this quick guide and the app works great. I have added a VCD file, the meta tag on my main page and started on the javascript to handle when Cortana activates the app. The app is registering great with Cortana, I can say: "Grocery show the CostCo list" and Cortana recognizes it and shows the app. The problem is that is always shows the home page. I want to have it show the CostCo page when it is

Bluetooth connection between Universal app and medical device - UUID and CODFilter

左心房为你撑大大i 提交于 2019-12-11 08:09:16
问题 I'm implementing an Universal app on both Windows 8.1 and Windows Phone 8.1 platforms, which should connect with devices like scale or blood pressure monitor by bluetooth technology. Unfortunatelly, I have difficulty in the discovering process and according to that I've no chance to pair and connect to the device. I've found the thread about this issue, but unfortunatelly it's associated with Android. From the post above: Describing the medical device: The device is using Service Discovery

XAML Custom Textbox Events and Properties not Updating in Real Time

本小妞迷上赌 提交于 2019-12-11 07:31:37
问题 After a creating and changing my custom Win 8.1/UWP TextBox control to inherit from TextBox and wiring up the TextChanged event, the Text property is not accurate when subscribing to the TextChanged event. Here's my control: [TemplatePart(Name = "PART_ctlTextBox", Type = typeof(TextBox))] public class CustomTextBox : Control { public CustomTextBox() { DefaultStyleKey = typeof(CustomTextBox); } protected override void OnApplyTemplate() { base.OnApplyTemplate(); var textBox = GetTemplateChild(

Items in ItemsControl takes width of First Item

淺唱寂寞╮ 提交于 2019-12-11 06:12:06
问题 WrapGrid in ItemsControl takes the width of the first item as the default width of all children items. Is there any workaround to make the itemwidth stretch according to each individual item's content? Here's My XAML. <Grid Grid.Row="2"> <ItemsControl Grid.Column="1" ItemsSource="{x:Bind articleTags}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Orientation="Horizontal"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <Border

C# Universal App: add scrollbar to textblock / textblock

醉酒当歌 提交于 2019-12-11 06:04:14
问题 I am new to C# and Universal App. Unfortunately I have not found a way to add a scrollbar to a textblock / textbox. Does anybody have an idea how to do this? Regards 回答1: Here is quick solution. Put TextBox inside ScrollViewer . <ScrollViewer Height="Auto"> <TextBox x:Name="textBox1" Text="example" AcceptsReturn="True" TextWrapping="Wrap"/> </ScrollViewer> 来源: https://stackoverflow.com/questions/38228489/c-sharp-universal-app-add-scrollbar-to-textblock-textblock