Xamarin Native Views in XAML doesn't show on IOS - xamarin

I tried to add a native view in a xamarin forms xaml file.
I have downloaded the example code from this page:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/native-views/xaml
Everything works file for Android and UWP. But for IOS, it can't display the native view, just a blank view.
I tried every example I can find on that page , turning out to the same result.
I'm using the latest version of VS 2017 and Xamarin.
Thanks for any suggestion.

This issue was caused by using Xamarin.forms 3.0.0, and a service release will be available for this soon.
Refer to here.

Related

Shell.Current.GoToAsync is not working on UWP

I want to use Xamarin.Forms Shell on the UWP platform, so I downloaded the example at https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-xaminals/, and then i updated all the nugets, so the version of xamarin forms is 4.7.0.1179. When i built this project and run it "Shell.Current.GoToAsync" has no effect on the UWP platform.
My development environment:
So I want to know if this is normal, if not how can i fix this?
Shell.Current.GoToAsync is not working on UWP
It's know issue in UWP platform, and it was fix in pre-release version. Please try to update the Xamarin.Form nugget to 4.8.0.1187-pre2 will fix this issue.

Hot reload in Xamarin Forms

I'm just starting with Xamarin and not sure if there's a way to have hot reload functionality. I installed this NuGet package but it doesn't seem to work.
https://www.nuget.org/packages/Xamarin.HotReload/
Is there way to have hot reloading in Xamarin Forms development?
Currently, there are 2 options available for Xamarin Forms:
1- The free one: Xamarin LiveReload
2- The paid one: LiveXAML
Update (Aug 2019) :
Xamarin Forms v4 now added live reload feature internally and there's no need for third-party libraries.
have you read documentation attentively? Did you install official HotReload visual studio extension?

Xamarin Forms AppCenter SDK Namespace Error

I am trying to add the AppCenter SDK functionality to my Xamarin Forms app (iOS and Android) and am following the documentation from here.
I am experiencing an issue with the namespaces not seeming to line up quite right. Here is a screenshot with some comments:
As you can see, AppCenter.Start(...) does not appear to exist but Microsoft.AppCenter.AppCenter.Start(...) does.
The shared project for my Xamarin Forms app is a .NET Standard 2.0 shared lib.
Any thoughts on what could be causing this?
Additional setup screenshots:
As you can see the screenshot attached, AppCenter is a class under Microsoft.AppCenter namespace, so what you are writing is correct only Microsoft.AppCenter.AppCenter.Start(...)
You can find the same by pressing F12 on AppCenter in AppCenter.Start(...)

Multiple errors after updating Xamarin Forms

I'm using Visual Studio 2017, and I stared a new Xamarin Forms app:
Create New project - Cross Platform App (Xamarin)
Blank App, and I chose Portable Class Library (PCL)
The app compiles and runs.
Now I right click the solution and choose Manage Nuget packages for solution, and it tells me I'm running version 23.3.0 and I should update to 25.4.0.1
After the update and 3 VS reboots, it gives me a host of errors I have been trying to solve for an hour including googling.
All theme related.
I tried removing the styles.xml file all together. I removed the theme from the reference to the theme from the manafest and it keeps putting it back.
I can't figure out what I'm doing wrong. I have not written any code.
Xamarin Forms requires a specific version of the Android Support libraries. Do not update them.
Delete your project and create a new one.
It is possible to get round this limitation by ensuring you are using a specific version of Android and by updating all Android SDK's, but for a beginner I would recommend just using the support libraries that are installed alongside Xamarin Forms.

XAML in Xamarin.iOS and Xamarin.Android

I was giving an interview for a company and I was told by the architect that they are creating iOS apps from Xamarin.iOS ( NOT Xamarin Forms) with MvvmCross framework and they use storyboards for UI. But if the UI is very simple they use XAML to create them.
I never knew we can use XAML for Xamarin.iOS and Xamarin.Droid. We had a small discussion/argument if that's even possible. He said they were using it successfully.
My question, is it really possible to use XAML in Xamarin.iOS and Xamarin.Droid. Because, if we can do that, I feel no use of using Xamarin forms.
If yes, can anyone provide some kind of documentation?
Thank you.
There is no way to design UI in XAML using Xamarin.Android or Xamarin.iOS, but you can include Xamarin.Forms page in Xamarin.Android or Xamarin.iOS app. This way you can have native app with UI using storyboards, but with some Xamarin.Forms pages designed in XAML.
There is a sample how to do that in Xamarin Forms samples project on GitHub.
Only Xamarin Forms support sharing of UI via XAML.
UI for iOS has to be made using xib or storyboard.
For Android using AXML.
Windows Phone, UWP, WinPhone Silverlight, Windows can use XAML for UI.

Resources