uwp

How WinForm and uwp communicate in two directions

守給你的承諾、 提交于 2020-01-04 03:49:16
问题 WinForm and uwp how to communicate two-way, I used MQTT, the shortcoming is that when the amount of data sent is relatively large, there will be a very serious delay, but also try socket mode, but WinForm can not connect to uwp, which friend please help me, thank you! 回答1: From the document Note part, two independent uwp run on the same computer can not communicate by socket. As a consequence of network isolation, Windows disallows establishing a socket connection (Sockets or WinSock) between

Extend buttons to title bar in UWP

纵然是瞬间 提交于 2020-01-04 03:39:09
问题 Is there a simple way to extend window controls into the title bar and make them clickable? I read the related post (How to customize the application title bar for a UWP page) and I understand how to extend into the title bar area visually. However, my buttons are not clickable in that area (as if there is a layer over them, preventing them from being clicked). 回答1: Sure thing, you start with //draw into the title bar CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true; /

Uwp: Xaml Parse Error with Target Device Family Desktop and Custom Styles

老子叫甜甜 提交于 2020-01-04 03:17:08
问题 :) I encountered a very weird error. I just completed work on my new UWP app. In my app I use custom styles for textBoxes and buttons (I created them by editing a template copy in Blend). The app is for desktop use only, and I remembered that I have to declare that in my manifest. So I changed the Target Device Family to <Dependencies> <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0"/> </Dependencies> But then I get a Windows.UI.Xaml.Markup

Localization with string.Format

旧时模样 提交于 2020-01-04 02:44:07
问题 Currently I am mostly doing the localization by putting key-value pairs into a Resources.resw file. So I wonder about how I should localize strings that need formatting or say strings with different grammar orders in different languages. It might be easier to understand what I mean with the examples below. For example, just as this part in the official document for localization suggests, one language can have the date format of string.Format("Every {0} {1}", monthName, dayNumber); while the

uwp should I be using user control inside a data template?

拈花ヽ惹草 提交于 2020-01-03 17:51:06
问题 in my UWP app I was thinking to extract my data template into a seperate user control , i.e: <DataTemplate><local:CustomTemplate/></DataTemplate> and the user control ( customtemplate ) will have that stackpanel or grid which was previously in my DataTemplate directly, along with its bindings, I already know how to achieve this. My Question is that by extracting out the data template in a user control, would this cause any performance hit? I read somewhere that while doing this each

Error File 'MakePri.exe' not found

假如想象 提交于 2020-01-03 13:39:15
问题 In Visual Studio 2017, I am building Class Library(Portable) which targets both .Net 4.6 and Windows Universal Application 10.0. While building the application, below error is thrown. Error File 'MakePri.exe' not found. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information. I have done the following - Installed Latest Windows 10 SDK - Repaired Visual Studio 2017 - Also in the environment variables, "WindowsSdkDir" is not available - The path "C:\Program Files (x86)\Windows

Can vstest.console.exe run an appx without a security certificate

梦想与她 提交于 2020-01-03 10:58:47
问题 I'm trying to set up automated builds on my build agent using MSBuild on the command line. The two projects I'm focussed on at the moment are a UWP and it's associated unit test project. To build, I have to use this: /p:AppxPackageSigningEnabled=false Else, I get this error: error APPX0101: A signing key is required in order to package this project. Please specify a PackageCertificateKeyFile or PackageCertificateThumbprint value in the project file. However, this does not generate a .cer

UWP Generating a PDF - best approach

百般思念 提交于 2020-01-03 05:50:26
问题 I'm working on a UWP app and as one of the requirements I need to generate a PDF file dynamically. There are a few contraints / requirements that I need to concider: Need an ability to generate PDF from the UWP app directly / offline scenario Potentially need an ability to generate the report on the server - ideally from the same source template Report needs to be somewhat dynamic (i.e. not compiled into the app it self and format editable without recompilation of the app) Ideally - not

Bluetooth connection between Xamarin-Android and UWP

耗尽温柔 提交于 2020-01-03 05:22:27
问题 For quite a lot of time I struggled with finding a working solution to connect an android device and an UWP application (on PC) with either an IP connection or bluetooth. The main issue is to find a set of code or example which is simple enough to get into but is guaranteed to work (so that my efforts are not futile, which was the case for more than a week now). What is clear is that there is no possibility for a "code pair" (as of client-server), as the libraries used and the way the code

UWP MergedDictionary Style that references other style throws error

十年热恋 提交于 2020-01-03 05:18:08
问题 Having real problems creating a Merged Dictionary of styles that need to use values from another MergedDictionary ( Brushes.xaml ). When I try and reference it from another file I get the following error: "Failed to assign to property 'Windows.UI.Xaml.ResourceDictionary.Source' because the type 'Windows.Foundation.String' cannot be assigned to the type 'Windows.Foundation.Uri'. [Line: x Position: y]" E.g. in a Resource Dictionary I have the following that works.. <ResourceDictionary xmlns=