xamarin.ios

Xamarin Forms CollectionView doesn't show properly

廉价感情. 提交于 2020-06-17 09:32:48
问题 I have a problem. I created a CollectionView with a custom ViewPage to place a grid with rowspan. The ItemSource is set using a ViewModel. Now when I scroll in the CollectionView the rows are randomly placed on the screen, even inside each other. Here is my xaml code: <CollectionView ItemsSource="{Binding agentOrderList}" Margin="5,0,5,0" HeightRequest="450"> <CollectionView.ItemsLayout> <LinearItemsLayout Orientation="Vertical" ItemSpacing="0"/> </CollectionView.ItemsLayout> <CollectionView

How to convert Xamarin Forms view to a Native view iOS/Android with the same size?

匆匆过客 提交于 2020-06-17 09:31:07
问题 I am using the example here, but I am struggeling to fill in the right size parameter here so that it represents the same size as the forms view. https://michaelridland.com/xamarin/creating-native-view-xamarin-forms-viewpage/ public static UIView ConvertFormsToNative(Xamarin.Forms.View view, CGRect size) { var renderer = RendererFactory.GetRenderer(view); renderer.NativeView.Frame = size; renderer.NativeView.AutoresizingMask = UIViewAutoresizing.All; renderer.NativeView.ContentMode =

Can´t load plist file, Error Failed to parse Plist data type:key

折月煮酒 提交于 2020-06-17 06:05:06
问题 I get the error from the title in my xamarin forms app. It doesn't have that error before I update VS2017. I did this because I need some libraries for unity (and load all the others related to games). Now I can't even load the iOS part in Xamarin Forms, it says is not available. This is my Info.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UIDeviceFamily<

Can´t load plist file, Error Failed to parse Plist data type:key

假如想象 提交于 2020-06-17 06:04:36
问题 I get the error from the title in my xamarin forms app. It doesn't have that error before I update VS2017. I did this because I need some libraries for unity (and load all the others related to games). Now I can't even load the iOS part in Xamarin Forms, it says is not available. This is my Info.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UIDeviceFamily<

Xamarin bug happens when linker is set to “Link All”. Can't use DependencyService

帅比萌擦擦* 提交于 2020-06-17 03:42:11
问题 Right now, I have to have my linker set to "Link All" in order to submit to the App Store because of the deprecated UIWebView. While doing this, I had to add [Preserve(AllMembers = true)] to my DataStores to make them work this way, but then I ran into this issue. The following line will return null: var dp = DependencyService.Get<ITextMeter>(); After looking into the solution, it seemed the best answer would be to add the following line into the AppDelegate: DependencyService.Register

FFImageLoading: How to add authentication?

感情迁移 提交于 2020-06-17 01:51:52
问题 I'm trying to use FFImageLoading in my Xamarin.iOS and Xamarin.Android apps to load images from url. All the url's require authentication.. Also I'm using modernhttpclient for all other Rest Calls. For modernhttpclient this is how I'm adding authentication var cookieHandler = new NativeCookieHandler (); var messageHandler = new NativeMessageHandler (false, false, cookieHandler); cookieHandler.SetCookies (RestApiPaths.cookies); using (var client = new HttpClient (messageHandler)) { client

Is there a way to disable Auto Capitalisation on Xamarin Forms 'Entry' XAML

本秂侑毒 提交于 2020-06-13 19:30:10
问题 I have just started working in Xamarin and am writing an App targeting iOS and Android. I'm trying to keep pretty much all of my UI design in the common library between them and am starting to find the lines a bit blurred. My current requirement is to disable the auto-capitalisation on the 'Entry' tag object in XAML. Is this something that can be done by markup? I cannot find any property that would support this behaviour. If not, what should I do instead? 回答1: If you plan to use this

Is there a way to disable Auto Capitalisation on Xamarin Forms 'Entry' XAML

為{幸葍}努か 提交于 2020-06-13 19:30:04
问题 I have just started working in Xamarin and am writing an App targeting iOS and Android. I'm trying to keep pretty much all of my UI design in the common library between them and am starting to find the lines a bit blurred. My current requirement is to disable the auto-capitalisation on the 'Entry' tag object in XAML. Is this something that can be done by markup? I cannot find any property that would support this behaviour. If not, what should I do instead? 回答1: If you plan to use this

Xamarin iOS - Load Storyboard Reference Programatically

北慕城南 提交于 2020-06-11 06:51:19
问题 I have 2 storyboards: Activities.storyboard and Contacts.storyboard . On Contacts.storyboard I have a ViewController: ContactDetails . On Activities.storyboard I need refer the ContactDetails in Contacts.storyboard I created a Storyboard Reference on Activities.storyboard and referenced the ContactDetails . And I tried load this View Controller programmatically var viewController = Storyboard.InstantiateViewController(nameof(ContactDetails)); NavigationController.PushViewController

Xamarin.IOs gives an error “either upgrade Xcode or set the managed linker behaviour to Link Framework SDKs Only”

房东的猫 提交于 2020-06-11 05:06:53
问题 I have a Xamarin.IOs project. After doing some updates I am getting this error, This version of Xamarin.iOS requires the iOS 11.4 SDK (shipped with Xcode 9.4). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs). How can I set the managed linker behaviour to Link Framework SDKs Only ? 回答1: Right click on the IOs project and select Properties . In the Properties Window , Under iOS Build section,