uwp

Is there a way to run a Xamarin UWP project without deploying every time

和自甴很熟 提交于 2019-12-05 03:08:38
Do I always have to click to deploy a UWP app before running it? Thats two steps and I'd like to perform just one. I've just created a Blank Xaml App (Xamarin.Forms Portable) New Project from the list of Cross-Platform, Windows, Visual C# Templates in Visual Studio 2015 update 2. There are projects for Droid, iOS, and UWP (Universal Windows) as well as a few others. I set the UWP app as the startup project and attempted to run it (by clicking the green arrow on my local machine or hitting F5), but I received an error saying that I need to deploy first. If I right click the project and then

UWP - Targeted .NET version?

蹲街弑〆低调 提交于 2019-12-05 02:57:21
I was always able to set the target framework version for regular .NET projects. In a UWP app I can only set the "Windows 10 build version" . How do they relate to the .NET (core? native?) platform versions? UWP doesn't target a NET framework version, but it targets an SDK version, you can change the sdk version in project properties: You can also set the minimum target version. Furthermore, since UWP .NET Project (C# or Visual basic) is based on .NET Core you can upgrade (or downgrade) the .NET Core version through .nuget: UWP is a set of APIs (just like any .NET). There are different APIs

UWP: How to record Screen and save as mp4 file?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 02:36:33
问题 I have figured out how to capture the screen and output it back to a previewer using the sample here: Microsoft Screen Capture Documentation Which is fine as far as it goes. What I can't figure out, nor can I find any documentation is to take those frames and write them to a video file. Ideally I want to stream them directly into an mp4 or similar which I can then use later with the MediaComposition system to do editing. I found VideoFrame.CreateWithDirect3D11Surface but I can't figure out

How to debug a UWP UpdateTask?

我的梦境 提交于 2019-12-05 02:32:44
问题 In my UWP app, how can I debug through the code in my UpdateTask? The ‘Lifecycle Events’ dropdown in VS 2017 doesn’t seem to offer a choice to trigger this type of background task. Is there a way to accomplish this? 回答1: First some context on UWP's UpdateTask: It’s a background task your app can implement to get triggered by the system when your UWP has received an update. It runs your code from the updated app package in a background process, so you can take care of any maintenance related

Windows SDK UWP App Error - DEP3321

…衆ロ難τιáo~ 提交于 2019-12-05 02:25:50
I have been battling DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.14393.0 or higher. You currently are running version 10.0.10586.839. Please update your OS, or change your deployment target to a device with the appropriate version. for the past few days. I have a UWP app which I cannot run on my machine. However, if I select one of the emulators, it runs fine. I have also set the minimum target value which ensures that the app runs, however, the app throws an error as it cannot find some methods in the lower version on

Background task registration hangs in UWP with GattCharacteristicNotificationTrigger

馋奶兔 提交于 2019-12-05 02:19:15
问题 I'm trying to use an in-process background task to get notifications of a Bluetooth LE device. However, the following code hangs at the last line and does not return: var bldr = new BackgroundTaskBuilder(); bldr.Name = guid.ToString("N"); var trigger = new GattCharacteristicNotificationTrigger(ch); bldr.SetTrigger(trigger); bldr.Register(); Getting the notifications of the device works when using the event-based model in the application. Also, registering the task with a TimeTrigger works, so

ExpanderView is expanded after page navigation

偶尔善良 提交于 2019-12-05 01:57:47
问题 I'm using a port of the WPF ExpanderView (ExpanderRT) in my UWP app to show expandable headers with items. This works fine when the app is launched for the first time and MainPage is initialized. However if I navigate to a new page and then go back to MainPage the ExpanderView looks like expanded, but not it's not showing the items. It should look the same as it was when MainPage was first initialized. I captured a GIF to show the behaviour. This is the XAML of the UserControl on the MainPage

Change mouse pointer in UWP app

社会主义新天地 提交于 2019-12-05 01:50:26
Is it possible to change or even hide the mouse-pointer in a UWP app? The only thing I can find is this : Windows.UI.Xaml.Window.Current.CoreWindow.PointerCursor = null; But in UWP, this doesn't work. Yes this can be done by settings the Window.Current.CoreWindow.PointerCursor . If you set it to null, the pointer is hidden. Otherwise you can use the CoreCursorType enumeration to set a specific system point. For instance use this to set the Arrow type: Window.Current.CoreWindow.PointerCursor = new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Arrow, 0); You can also add custom

UWP WrapPanel Replacement?

坚强是说给别人听的谎言 提交于 2019-12-05 01:41:04
Is there a replacement for this WPF code? <WrapPanel> <TextBlock Width="100" Height="20"/> <TextBlock Width="30" Height="50"/> <TextBlock Width="150" Height="70"/> </WrapPanel> This is really stupid if there is none... Update: I forgot to mention that the width of the WrapPanel is smaller than the total width of all the TextBlocks combined. This means that some of the items need to wrap to a second row. I thought that this is what most people used a WrapPanel for, but apparently some use it for a Horizontal StackPanel (In this case, you should set the StackPanel's Orientation to Horizontal ...

How to calculate the height of a FontFamily with Win2D (Line Spacing)?

你。 提交于 2019-12-05 01:12:14
I would like to know how to calculate the height of a given a font (with its properties, like size, weight, style...) in a Window Universal Application using Win2D. I previously used a CanvasTextLayout , but it requires a text to work, like in this line: var ctl = new CanvasTextLayout(session, "Some text", new CanvasTextFormat(), constraintWidth, constraintHeight ); In my case, I will NOT have a text because what I'm looking for is the height in which all the glyphs of a given font (with its style, size, weight...) are fit. EDIT: I have also tried with the CanvasFontFace class, but it seems it