xamarin.forms

How to load a Picker in Xamarin forms with data received from the Web Api?

百般思念 提交于 2021-02-11 12:45:24
问题 So, this is my Model Class "Usuario" This class has the Foreign key "IdTipoUsuario" that was declared in my database from SQL Server Management Studio. So I placed it here with the "IList" property: namespace APPiGarbage.Models { public class Usuario { public int IdUsuario { get; set; } public string Nome { get; set; } public string Foto { get; set; } public string Descricao { get; set; } public string Email { get; set; } public string Senha { get; set; } public IList<TipoUsuario>

Defining Shell.TitleView while preserving the title text of tabs in shell, but seems showing in a different font

心不动则不痛 提交于 2021-02-11 12:38:15
问题 I am defining a custom Shell.TitleView in a way to preserve the Tab/Page title of my ContentPage as follow: <Shell.TitleView> <Label Text="Page2" FontSize="20" VerticalTextAlignment="Center"/> <!-- rest of my TitleView irrelevant in this question--> </Shell.TitleView> The issue here is that the generated title by the default Shell.TitleView (in the second Tab) is different from mine (the difference is more noticeable when you navigate from one tab to the other than in screenshots), at first I

Defining Shell.TitleView while preserving the title text of tabs in shell, but seems showing in a different font

岁酱吖の 提交于 2021-02-11 12:37:50
问题 I am defining a custom Shell.TitleView in a way to preserve the Tab/Page title of my ContentPage as follow: <Shell.TitleView> <Label Text="Page2" FontSize="20" VerticalTextAlignment="Center"/> <!-- rest of my TitleView irrelevant in this question--> </Shell.TitleView> The issue here is that the generated title by the default Shell.TitleView (in the second Tab) is different from mine (the difference is more noticeable when you navigate from one tab to the other than in screenshots), at first I

ImageCropper.Forms plugin not working in Xamarin.Forms iOS

こ雲淡風輕ζ 提交于 2021-02-11 12:27:29
问题 I am using this plugin and ImageCropper.Forms nuget package for cropping images in Xamarin.Forms My Android project is working fine using above example but in iOS cropping window does not open 回答1: I Believe you are using Cropper from a page pushed using 'Navigation.PushModalAsync', try 'Navigation.PushAsync'. I've raised an issue on github https://github.com/stormlion227/ImageCropper.Forms/issues/22 来源: https://stackoverflow.com/questions/53555554/imagecropper-forms-plugin-not-working-in

Alarm manager local notification - how to open a specific page when open notification?

允我心安 提交于 2021-02-11 12:14:29
问题 I have used alarm manager where user set date and time and he will get local notification on that date/time. The problem I am facing is, that I don't know how to navigate to specific a page when I open notification. Here is my xamarin.android code. I am using xamarin forms. public class LocalNotificationService : ILocalNotificationService { int _notificationIconId { get; set; } readonly DateTime _jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); internal string _randomNumber;

Xamarin fails to deploy on Android. Unexpected install output: Error: Failed to parse APK file

隐身守侯 提交于 2021-02-11 12:13:13
问题 I have successfully updated an app from Xamarin.Forms v2 to version 4.5. Unfortunately I am unable to install the app on the Android emulator, receiving the following error: Exception occurred while executing: java.lang.IllegalArgumentException: Error: Failed to parse APK file: /data/local/tmp/com.myapp.name-Signed.apk at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:338) at com.android.server.pm.PackageManagerShellCommand.runInstall

FireStore permission denied on basic requests Xamarin Forms

给你一囗甜甜゛ 提交于 2021-02-11 09:41:28
问题 I have been struggling with this problem for a few days now and I am not making much progress, any help would be appreciated. I am new to FireStore but really like the possibilities it offers. I have successfully managed to get basic documents from Android and iOS apps using Plugin.CloudFirestore and Xamarin.Forms. However I need some back-end services, things like data set-up etc and need to be able to connect to FireStore via regular old C# desktop app. So I followed the quick start guide,

I would like to use simple icons such as those used on the left hand side of Settings in iOS. Any advantage to using svg vs png?

风格不统一 提交于 2021-02-11 08:46:16
问题 I have icons built as svg or png just as easily. Also for those people that are using svg, what's the method you are using to display these? 回答1: Official iOS Dev documentation says "the PNG format is the one most recommended for use in your apps". You can read it for a lot more information here. although the supported file types table doesn't list .SVG. Apple values user experience. SVG scaling consumes a few more CPU cycles which they don't like. PNG rendering is more efficient than SVG,and

Setup Web Authenticator in Xamarin Essentials for local Android development

巧了我就是萌 提交于 2021-02-11 05:56:43
问题 I am trying to setup development environment to integrate Google sign-in on Android using Web Authenticator in Xamarin Essentials. In the Web API project, same AuthController is included described in this article. It is running on https://localhost:44311/api To call the API from emulator, API url is referenced as https://10.0.2.2:43411/api as described in this article. Now, I am able to call the API url using await WebAuthenticator.AuthenticateAsync(apiUrl, callbackUrl) But, when API tries to

Setup Web Authenticator in Xamarin Essentials for local Android development

纵然是瞬间 提交于 2021-02-11 05:55:08
问题 I am trying to setup development environment to integrate Google sign-in on Android using Web Authenticator in Xamarin Essentials. In the Web API project, same AuthController is included described in this article. It is running on https://localhost:44311/api To call the API from emulator, API url is referenced as https://10.0.2.2:43411/api as described in this article. Now, I am able to call the API url using await WebAuthenticator.AuthenticateAsync(apiUrl, callbackUrl) But, when API tries to