uwp

Could not load file or assembly 'clrcompression, xamarin forms UWP

十年热恋 提交于 2019-12-07 01:57:10
问题 During OnLaunched at Xamarin.Forms.Forms.Init(e); the app throws System.IO.FileNotFoundException Could not load file or assembly 'clrcompression, I have the following dependencies "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2", "Newtonsoft.Json": "9.0.1", "System.Collections.Immutable": "1.2.0", "Xamarin.Forms": "2.3.1.114" All the xamarin sample apps for uwp are running without a problem. UPDATE: The exception is now gone, reason unknown. The only known difference is that i added and

Change default User-Agent in WebView UWP

血红的双手。 提交于 2019-12-07 01:54:25
问题 I need set custom UA and I use httpRequestMessage.Headers.Add("User-Agent", "blahblah"); theWebView.NavigateWithHttpRequestMessage(httpRequestMessage); But if I click any link on page this UA erased and set default UA. I found same question WebView - Define User-Agent on every request but maybe it fixed in 1607? 回答1: WebView is not a general-purpose browser, it does have some "limitations" that not supported now. There is no API can set the default User-Agent that used in every request. As a

UWP App SQLite Access database in Documents Library

。_饼干妹妹 提交于 2019-12-07 01:15:26
问题 Q: I can't open a SQLite database in my Documents folder: App: Universal Windows (10) Platform Development: C#, Visual Studio 2015 SQLite: Using SQLite.net Targets: Windows 10 Desktop and Windows 10 Phone Deployment: From Visual Studio or Sideloaded (Do not need Store deployment) using SQLite; using SQLite; using SQLite.Net; using SQLite.Net.Async; using SQLite.Net.Attributes I can: Open and read from a database included in the project as content: using (SQLite.Net.SQLiteConnection conn = new

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

此生再无相见时 提交于 2019-12-07 01:01:18
问题 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)

UWP - Targeted .NET version?

最后都变了- 提交于 2019-12-07 00:33:20
问题 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? 回答1: 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)

Can't Debug .NET Standard 2.0 DLL in UWP

对着背影说爱祢 提交于 2019-12-07 00:08:00
问题 I created a fresh Xamarin Forms solution, upgraded all the NuGets, made sure that the UWP version was targeting build 16299, and made sure the .NET Standard project is targeting 2.0. I ran the project and was able to debug the .NET Standard 2.0 DLL fine. You can download this here but I don't think it will be of any use: https://www.dropbox.com/s/jw13heu98yq2n6x/CleanXF.7z?dl=0. I then pulled these projects in to another solution, added some references to other projects, and copied and pasted

Change mouse pointer in UWP app

感情迁移 提交于 2019-12-06 21:45:15
问题 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. 回答1: 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

Black screen in Cordova Windows 10 UWP app

折月煮酒 提交于 2019-12-06 20:29:26
问题 I am using Cordova to build a UWP Windows 10 app that contains an Ext.js web application. I can successfully build the application using Cordova with cordova build windows and with Sencha's system sencha app build native . This outputs a folder in cordova\platforms\windows\AppPackages with an .appx file that I can install after trusting the generated key. The Problem When installation completes, if the "Run when finished" checkbox is left checked, the app loads and I see our login screen. If

Disable left/right/up/down hotkeys in flipview

耗尽温柔 提交于 2019-12-06 20:25:21
How to disable right/left/up/down arrows hotkeys in flipview? I have a textbox on a flipview and when I move cursor using keyboard arrows and reach the end of textbox, it doesn't stop but flips the page which is annoying and is not applicable for my case. The same is true for cursor reaching the beginning of the textbox. I've tried different solutions, but none of them work. <FlipView x:Name="flipView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsTabStop="False"> <FlipView.Items> <StackPanel> <TextBox Text="AAAAA1"></TextBox> <TextBox Text="AAAAA2"></TextBox> </StackPanel>

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

删除回忆录丶 提交于 2019-12-06 19:44:56
问题 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