uwp

UWP (c#): Main Loop (Event loop)

风格不统一 提交于 2019-12-11 06:57:08
问题 Background: I'm relatively new to C# and UWP and started developing an app in order to learn the basics. I tried searching for an answer of what I assume to be a really basic question, but I wasn't able to find one (probably my fault). So, the app I'm making is connected to a bluetooth device which streams some data. The first "view page" is the bluetooth device selection and then it switchs to the main one where I'm going to do everything else. I got event handlers to deal with the incoming

Cannot Save Decimal Property from UWP TextBox

我与影子孤独终老i 提交于 2019-12-11 06:55:18
问题 I have 2 TextBoxes in UWP. They are bound to integer and decimal properties on the model entity. The integer property is saved but the decimal returns the error Cannot save value from target back to source. BindingExpression: Path='ComponentDec' DataItem='Orders.Component'; target element is 'Windows.UI.Xaml.Controls.TextBox' (Name='null'); target property is 'Text' (type 'String'). The relevant XAML is: <ListView Name="ComponentsList" ItemsSource="{Binding Components}"> <ListView

Move Toolbar to the bottom in UWP with PlatformConfiguration (Xamarin.Forms 2.3.3)

别等时光非礼了梦想. 提交于 2019-12-11 06:44:56
问题 Trying out the new PlatformConfiguration in Xamarin.Forms 2.3.3.166-pre4 but moving the Toolbar to the bottom on UWP just doesn't want to work. What am I doing wrong? using Xamarin.Forms; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Forms.PlatformConfiguration.WindowsSpecific; namespace FormsToolBarDemo { public partial class MainPage:ContentPage { public MainPage() { InitializeComponent(); this.On<Windows>().SetToolbarPlacement(ToolbarPlacement.Bottom); } } } 回答1: Alright, after

Visual Studio Designer not showing controls for UWP Apps

限于喜欢 提交于 2019-12-11 06:40:02
问题 XAML Designer is not displaying controls in a way they are visble. The controls are there, if you click where one should be the outline borders are highlighted and the proper xaml code is selected. With nothing selected it looks like a blank pallet with just the page outlined. I have tried the blue, blue extra contrast, dark and light color theme. Same issue all themes. I have also tried switching between ARM, x86 and x64 with issue in all three. There are no messages in the Error List. Have

UWP unable to create localhost connection between two apps

旧街凉风 提交于 2019-12-11 06:38:50
问题 I am trying to setup a TCP connection between two UWP apps. It works fine when both server and client are running in the same app. But when I move the server part to one app and the client part to another, the ConnectAsync throws an exception (server does not respond in time). Both apps have the private networks capability setup. And as I understand from the MSDN pages I don't have to bother with adding an exception in CheckNetIsolation as long as I run the apps in the debugger. (I checked

Cannot Sideload Win10 UWP Application Without Developer Mode/Developer License

徘徊边缘 提交于 2019-12-11 06:38:48
问题 I'm developing a Line of Business application to be installed on multiple PC's, but I cannot get the Sideload to finish successfully. I receive the following error from the Add-AppDevPackage script: "Could not acquire a developer license" If I set Developer Mode, my problems go away. But... That is an not option for the app's software deployment. My setup: Visual Studio 2017, Win10 v. 1903 on the Development machine, Win10 v. 1809 on the Target machines Per Microsoft's documentation: https:/

Packging of Edge Extension which support nativemessaging(UWP app)

时间秒杀一切 提交于 2019-12-11 06:35:47
问题 I developed an extension which uses native messaging to communicate with backend uwp application. How can I package it? When I install the package, will it install the edge extension as well which is a part of the package. 回答1: I have successfully built a package with the edge extension by the following steps. Hope this will help you~ Build the project as following structure in C\EdgeExtension\Appx: 1. fullTrustProcess If there is fullTrustProcess, the exe should be included in TrustedProcess

RichEditBox (UWP) ignores font and foreground when setting Rtf text

半世苍凉 提交于 2019-12-11 06:35:38
问题 I'm working with a RichEditBox and I'm having some problems saving and restoring the Rtf text. Here's a sample Rtf text I've exported, as you can see there are the different foreground colors and font families saved correctly (I've manually indented it to make it easier to read) : {\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1040 {\fonttbl{\f0\fnil\fcharset0 Segoe UI;} {\f1\fnil\fcharset0 Brush Script MT;} {\f2\fnil\fcharset0 Impact;} {\f3\fnil Segoe UI;}} {\colortbl ;\red9\green105

How to pull missile images on top of the lines?

守給你的承諾、 提交于 2019-12-11 06:35:16
问题 As you can see below, the images of the little missiles are not over the lines. How can I create an offset that respects the angle and rotation. I am using linear interpolation to extract x y coordinates between the ends of each straight line. float xDiff = end_xpos[i] - start_xpos[i]; float yDiff = end_ypos[i] - start_ypos[i]; double degrees = Math.Atan2(yDiff, xDiff) * 180.0 / Math.PI; double radians = (Math.PI / 180) * degrees; args.DrawingSession.DrawLine(start_xpos[i], start_ypos[i], end

programmatically move items in UWP ListView without refresh

二次信任 提交于 2019-12-11 06:34:25
问题 The following problem is keeping me busy now for quite some time, it seems to be so basic, yet it just doesn't work. It boils down to this: Having a ListView that is bound to some suitable collection in code behind (ObservableCollection, ReactiveList, or alike) I'm moving items one at a time every x seconds on every move, all of the items get refreshed (at least it looks like that. for a split seconds all items disappear, then reappear in the new order) there must be a way to keep the other