xamarin.uwp

UWP image scaling with Xamarin Forms

只愿长相守 提交于 2019-12-13 03:04:37
问题 I am creating a iOS, Android, UWP app with Xamarin Forms. I am well versed in how the iOS and Android platforms handle image scaling (1x, 2x, 3x, etc). However, I am not so familiar with UWP. In UWP you can have different image sizes to handle different scaled screen sizes. Here are 3 different sized versions of the same image. So my questions Is the 100 scale size is the image used when the Windows user has chosen no scaling of the screen (100%)? Are the 200 and 400 scale sizes for when the

AppViewBackButtonVisibility not working

白昼怎懂夜的黑 提交于 2019-12-12 04:48:32
问题 I'm trying to show a "back" button on my (Xamarin.Forms) UWP app when running on a desktop PC. I'm running the following code in the App 's OnLaunched method: SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; But the back button is not shown. The line does work on a pure UWP app. But not in Xamarin.Forms. Is there any additional step needed to get this working? EDIT It seems now that when navigating to a new NavigationPage(page)

hockeyapp throws exception on UWP in xamarin.forms application

我们两清 提交于 2019-12-12 04:35:58
问题 I was using hockeyapp successfully in android and ios when I now try to use it uwp application on emulator and local win10 machine. It throws as exception for missing " 'Windows.System.Profile.HardwareIdentification'.":"Windows.System.Profile.HardwareIdentification"" my UWP version is as below my application is an xamarin.forms application. here is what I installed XF proj: HockeySDK.Xamarin, HockeySDK.Core UWP proj: HockeySDK.Core, HockeySDK.UWP In the constructor of MainPage.xaml.cs in UWP

How do I change the Title Background color On Windows Platform (Xamarin)

柔情痞子 提交于 2019-12-12 03:40:30
问题 Screen Shot I am developing an application using Xamarin Forms in Visual Studio 2013. I have managed to change the Header Background color for Android but I am failing to do the same for Windows project. It comes with the Default Dark theme. Please Assist me. Thank You 回答1: NavigationPage.BarBackgroundColorProperty Works! Thank You for your suggestions. 回答2: Your question is not very clear to me, but I think that this is what you mean. With "Header Background color" I think you mean the

Can't write file in USB flash drive with Xamarin Android/Uwp

我的未来我决定 提交于 2019-12-11 18:45:24
问题 I have some troubles. It's about this subject => System.UnauthorizedAccessException : Access to the path “/storage/[Name]/[nameFolder]/[fileName].txt is denied. At System.IO.FileStream etc…. I know this subject is already here in SOF, but I can't find a solution for Xamarin.Android. It's the same for Xamarin.Uwp, no access right. I can't write a file in the root path (from the USB Flash Drive path) = /storage/[NameOfTheFlashDrive] It's the same if I use the Android path = content://com

Active Directory: MSAL (UWP) PublicClientApplication.AcquireTokenAsync(…) returns exception

Deadly 提交于 2019-12-11 08:54:23
问题 I am trying to implement a sign in / login function using Active Directory. I am basing myself in on this b2c-xamarin sample. Below is the relevant code that I am having issues with. I have made modifications here to simplify readability. I have inserted comments for anything noteworty, particularly AcquireTokenAsync: string ClientID = "<application_id_of_b2c_application>" string Authority = "https://login.microsoftonline.com/tfp/<b2c_tenant_name>/<signin_policy_name>/oauth2/v2.0/authorize"

Xamarin.Forms UWP - Print Webview with pagination support

一笑奈何 提交于 2019-12-11 07:44:06
问题 I'm working on Xamarin.Forms based project, trying to print the webview content with pagination. I've referred the following link already: How do I print WebView content in a Windows Store App? But unfortunately this way is not working with Xamarin.Forms because the way demonstrated in the above link is by filling the rectangle(windows shape) using webviewbrush (both the rectangle and webviewbrush are platform dependent controls to UWP). The problem is we can't use webviewbrush to draw

Xamarin.Forms.Forms.Init(e) FileNotFoundExeception in Onlaunched

雨燕双飞 提交于 2019-12-11 07:06:38
问题 My Android Application works fine but when I launch my UWP application it crashes in the OnLaunched of my App.xaml.cs at the line of Xamarin.Forms.Forms.Init(e) This is the error I'm getting: System.IO.FileNotFoundException: 'Could not load file or assembly 'clrcompression, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.' It completely makes my app crash, only thing I can see is my Splashscreen. In IOS got a similar issue. It also show an error of

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

Xamarin forms: Custom Fonts in UWP and Windows 8.1

假装没事ソ 提交于 2019-12-11 06:08:20
问题 I am developing an app in which I am using a font.otf file. My app will run on android, ios, windows 10 and windows 8.1. I need to create styles for my labels to set font family. For android and ios I referenced this link I tried in xaml page like this- <Label.FontFamily> <OnPlatform x:TypeArguments="x:String"> <OnPlatform.iOS></OnPlatform.iOS> <OnPlatform.Android>Lobster-Regular.ttf#Lobster-Regular</OnPlatform.Android> <OnPlatform.WinPhone></OnPlatform.WinPhone> </OnPlatform> </Label