uwp

Create a BitmapImage from a Byte array and display it on an Image object UWP Raspberry Pi 3

孤街浪徒 提交于 2020-01-24 09:06:08
问题 I'm using this code to write a Byte Array inside a file BMP: private async void ScriviBMP() { using (Stream stream = immagineBitmap.PixelBuffer.AsStream()) { await stream.WriteAsync(arrayImmagine, 0, arrayImmagine.Length); } StorageFolder folder = KnownFolders.PicturesLibrary; if (folder != null) { StorageFile file = await folder.CreateFileAsync("area2_128x128" + ".bmp", CreationCollisionOption.ReplaceExisting); using (var storageStream = await file.OpenAsync(FileAccessMode.ReadWrite)) { var

Is Azure Notification Hubs package compatible with .NET Core?

我只是一个虾纸丫 提交于 2020-01-24 04:27:39
问题 I'm working with a .NET core app, and I see some Azure packages are not compatible, for example NotificationHubs and SendGrid : Package Microsoft.Azure.NotificationHubs 1.0.5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) The dependency SendGrid.CSharp.HTTP.Client 2.0.4 does not support framework .NETCoreApp, Version=v1.0 I only tried adding NotificationHubs and SendGrid. I haven't even tried any ActiveDirectory packages yet. Does anyone have any idea if some of these

How do I get the .pfx file?

China☆狼群 提交于 2020-01-24 01:49:29
问题 I am working on a UWP app. I store the source code in Azure DevOps Services. I can debug it fine on my desktop PC. However, I cannot on my laptop. The issue is that I don't have the .pfx file necessary for debugging, on my laptop. I returned from the Microsoft Ignite conference, where I learned that I should copy the .pfx from off of my desktop onto my laptop. So I tried to find it (it's named Blank_TemporaryKey.pfx), but it isn't in the directory. Looking at Visual Studio I see that it has a

Run UWP appium tests in azure pipeline

混江龙づ霸主 提交于 2020-01-24 01:14:06
问题 Just wondering if it is possible to run Appium based UI tests for a UWP app in azure pipeline? The first challenge is, how to deploy the UWP to test within the pipeline. 回答1: I managed to figure it out. We need to install the app after the build, which can be done using running the powershell script included in the build artifacts. But the important things is the installation of the certificate, which needed to be forced. - task: PowerShell@2 displayName: 'Install app' inputs: filePath: '$

Run UWP appium tests in azure pipeline

元气小坏坏 提交于 2020-01-24 01:13:40
问题 Just wondering if it is possible to run Appium based UI tests for a UWP app in azure pipeline? The first challenge is, how to deploy the UWP to test within the pipeline. 回答1: I managed to figure it out. We need to install the app after the build, which can be done using running the powershell script included in the build artifacts. But the important things is the installation of the certificate, which needed to be forced. - task: PowerShell@2 displayName: 'Install app' inputs: filePath: '$

UWP re-use visual state manager

折月煮酒 提交于 2020-01-23 17:22:48
问题 Why don't we have such easy responsive helpers for UWP? I have these styles in a separate .xaml file: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Project.App.WindowsApp.Styles"> <Style x:Key="TextTitleH1" TargetType="TextBlock" > <Setter Property="FontFamily" Value="Quicksand"/> <Setter Property="FontWeight" Value="Light"/> <Setter Property="FontSize" Value="30" /> </Style>

How to detect user idle in UWP?

岁酱吖の 提交于 2020-01-23 13:03:20
问题 I want to know how to detect user idle in UWP. I mean not the case user idle for the app, but for the whole system/OS: no keyboard input, no mouse operation, no touch even when no focus on the app or app is minimized. I find some other post about it. Like this: How to check if user is idle on UWP? And it uses below method: Window.Current.CoreWindow.PointerMoved += onCoreWindowPointerMoved; I tested and found that if my mouse moves outside of the app window, then onCoreWindowPointerMoved()

How to detect user idle in UWP?

时光怂恿深爱的人放手 提交于 2020-01-23 13:03:09
问题 I want to know how to detect user idle in UWP. I mean not the case user idle for the app, but for the whole system/OS: no keyboard input, no mouse operation, no touch even when no focus on the app or app is minimized. I find some other post about it. Like this: How to check if user is idle on UWP? And it uses below method: Window.Current.CoreWindow.PointerMoved += onCoreWindowPointerMoved; I tested and found that if my mouse moves outside of the app window, then onCoreWindowPointerMoved()

UWP app on Xbox

喜你入骨 提交于 2020-01-23 06:51:49
问题 During the events and promotions around Windows 10, I always see that the UWP apps can run on all devices from Microsoft family. To confirm that, when I am browsing for UWP apps on my browser and I click to see the source code from an app page, I am able to see the following meta data: <meta name="description" content="Download this app from Microsoft Store for Windows Phone 10, Windows 10, Surface HUB, HoloLens, other Windows devices, Xbox. See screenshots, read the latest customer reviews,

Zoom content to fit in a UWP WebView

六月ゝ 毕业季﹏ 提交于 2020-01-23 06:31:50
问题 I am trying to implement a zoom to content fit function in a XAML-WebView control inside a UWP app. As the semi-official solution for zooming seems to be using JavaScript, my approach was to dynamically set the zoom CSS-property of the body element. Now the question is to find the right zoom factor. According to the documentation, the WebView uses the Edge browser in document mode. However, in Edge, I found that the document.body.clientWidth -property always returns the document width,