Xamarin

Xamarin iOS add value to KeyChain which can be accessed by all apps on device

给你一囗甜甜゛ 提交于 2021-02-17 01:57:07
问题 I've created a new question for this since this is more linked to Xamarin. I was looking for a way to uniquely identify a device in iOS when I stumbled upon this question in StackOverflow. It took me a while to figure out how to add anything into Keychain and them I stumbled upon this question. After all the stumbling, I came up with this piece of code for generating the unique token. var s = new SecRecord(SecKind.GenericPassword) { AccessGroup = "kSecAttrAccessGroupToken", ValueData = NSData

How to update custom WebView height request when content is shrunk

北慕城南 提交于 2021-02-16 21:14:35
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

How to update custom WebView height request when content is shrunk

 ̄綄美尐妖づ 提交于 2021-02-16 21:14:07
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

Xamarin listview of List<List>

浪子不回头ぞ 提交于 2021-02-16 21:11:21
问题 I'm making a mobile app and I'm trying to load a list in a listview. The list has multiple elements and a list: public static List<Proposition> PropositionList = new List<Proposition> { new Proposition{ PropositionId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Place= "Barge", Date= new DateTime(2020, 7, 11), Users= new List<User>(){ new User { UserId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Name= "Jan Aerts", Sterren = 3 }, new User { UserId = Guid.Parse("00000000-0000

Xamarin listview of List<List>

风流意气都作罢 提交于 2021-02-16 21:10:10
问题 I'm making a mobile app and I'm trying to load a list in a listview. The list has multiple elements and a list: public static List<Proposition> PropositionList = new List<Proposition> { new Proposition{ PropositionId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Place= "Barge", Date= new DateTime(2020, 7, 11), Users= new List<User>(){ new User { UserId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Name= "Jan Aerts", Sterren = 3 }, new User { UserId = Guid.Parse("00000000-0000

Background select item of List View

本秂侑毒 提交于 2021-02-16 15:37:13
问题 I have a page.xaml with a listview. The background color of the page is white and when I tap a ListView item, the background of this item is gray. How can I change this color (of the background selected item) in a cross-platform way? Page.xaml page.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace App1.Materie_Universitarie.Diritto_Commerciale { [XamlCompilation

When to use Xamarin bindings as opposed to passing objects to page constructors?

旧城冷巷雨未停 提交于 2021-02-15 07:51:24
问题 So I have a problem where I want to pass data around my application in what I thought would have been a very standard way, but I'm unable to find any samples or examples that are similar to what I want to do. For example, I have an application with the type person. public class Person { public string Name; public int Age; public Person(string name, int age) { Name = name; Age = age; } } I want to create a list of person cards, each displaying the person's information. Then, when the card is

UIWebView Deprecation and App Store Rejection on Xamarin Forms

北城以北 提交于 2021-02-15 05:17:56
问题 Can i fix the following ? My setup Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community) Visual Studio Community 2019 for Mac Version 8.5.2 (build 13) Xamarin.Forms 4.5.0.617 I follow the instruction here https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/user-interface/webview?tabs=macos#uiwebview-deprecation-and-app-store-rejection-itms-90809 and here https://github.com/xamarin/Xamarin.Forms/issues/7323#issuecomment-542363338 to fix this problem ITMS-90809: Deprecated API Usage -

UIWebView Deprecation and App Store Rejection on Xamarin Forms

自闭症网瘾萝莉.ら 提交于 2021-02-15 05:10:38
问题 Can i fix the following ? My setup Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community) Visual Studio Community 2019 for Mac Version 8.5.2 (build 13) Xamarin.Forms 4.5.0.617 I follow the instruction here https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/user-interface/webview?tabs=macos#uiwebview-deprecation-and-app-store-rejection-itms-90809 and here https://github.com/xamarin/Xamarin.Forms/issues/7323#issuecomment-542363338 to fix this problem ITMS-90809: Deprecated API Usage -

UIWebView Deprecation and App Store Rejection on Xamarin Forms

拈花ヽ惹草 提交于 2021-02-15 05:10:10
问题 Can i fix the following ? My setup Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community) Visual Studio Community 2019 for Mac Version 8.5.2 (build 13) Xamarin.Forms 4.5.0.617 I follow the instruction here https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/user-interface/webview?tabs=macos#uiwebview-deprecation-and-app-store-rejection-itms-90809 and here https://github.com/xamarin/Xamarin.Forms/issues/7323#issuecomment-542363338 to fix this problem ITMS-90809: Deprecated API Usage -