OxyPlot "Exception thrown: 'System.InvalidOperationException' in OxyPlot.Xamarin.Forms.dll" - xamarin.forms

I have 2 questions regarding the OxyPlot library.
So I'm well aware that OxyPlot is supported for Xamarin.Forms, Xamarin.Forms.Android, Xamarin.Forms.iOS, and Xamarin.Forms.Mac. However, I was wondering if this library supports Xamarin Forms WPF. I know it works on WPF applications, but not in Xamarin Forms WPF. I checked in NuGet Package store, and none was found.
I get this error regarding running my Xamarin Forms project. I am creating a Xamarin Forms WPF project that will display a chart. But I keep getting this error.
Does anybody know why I'm getting this error? From my understanding, you need to initialize it. For example, for Android projects, you use
OxyPlot.Xamarin.Forms.Platform.Android.PlotViewRenderer.Init();.
But for Xamarin Forms WPF, there is no initialization function. Can anyone help me in regards to this problem? Thank you so much.
I tried initializing, but there's no initialize function for Xamarin Forms WPF. For example:
• iOS:
OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer.Init();
• Android:
OxyPlot.Xamarin.Forms.Platform.Android.PlotViewRenderer.Init();
• Universal Windows:
OxyPlot.Xamarin.Forms.Platform.UWP.PlotViewRenderer.Init();
• Windows Phone:
OxyPlot.Xamarin.Forms.Platform.WP8.PlotViewRenderer.Init();
• WPF: ???

Related

Is Agora RTM available for Xamarin Forms?

We would like to use Agora to develop a chat section in our Xamarin Forms App like this. Chat will also support voice messages, calls and video calls. On Agora's when I look at SDKs available there are various options like Flutter, ReactJS, Windows, Android, iOS and so on but I can't find Xamarin Forms as platform. On the web I found some NUGET packages like this for Xamarin Forms support, they look official but can't verify it. I found an example on github here, but It is for video calls and not RTM.
Please help!

Xamarin turn-by-turn navigation with routing and HERE

I am using Xamarin iOS and Android for turn-by-turn navigation routing. Can this be done with HERE?
We recommend using android studio. For Xamarin, bindings need to be created in SDK, which are not available in our existing roadmap. Hence you can either create the bindings yourself or using our professional services as SDK libraries need modification in this case. Yes it is available. It can be done.
Please refer the individual documentation for Android and Ios for more details :
Android : https://developer.here.com/documentation/android-premium/dev_guide/topics/map-guidance.html
IOS : https://developer.here.com/documentation/ios-premium/dev_guide/topics/map-guidance.html

cannot run prism xamarin with Xamarin.Forms 3.5.0.62956-pre2 or 4.0 pre2

been trying to play with the new stuff that will soon coming out from xamarin form
I create a new Prism xamarin app
I upgrade the nuget packages to point to xamarin 3.5 or 4.0
but I cannot get the solution to run.
It just hangs!!
It works when I do the same thing with a standard xamarin form template
I know its just preview but I would like to know if somebody has tried to compile and run any app using prism xamarin and the preview xam forms.
many thanks
As far as I am aware there should not be any issues with Prism when targeting Xamarin Forms 3.5+.
That said if you're wanting to target one of the pre-releases I would suggest either installing the current preview on NuGet which targets 4.0-pre1, or the latest CI build which targets 3.5-pre2 and has a number of great new features including a more robust API for IContainerRegistry as well as support for Tuples in INavigationService.

How can I get sensors values with xamarin forms?

I want to get the values of sensors with Xamarin forms. I found tutorials on how do it with the Android project but not with App.cs which is the shared project in xamarin forms.
I found my answer I will use the device Motion Plugin :
https://components.xamarin.com/view/DeviceMotionPlugin

Using Grial UIKit with Xamarin Forms

I am trying to use Grial UIkit with my existing Xamarin forms App, but I am facing some issues, can anyone tell me what steps I need to follow to use this kit with an existing project. Currently I am following this link
https://github.com/UXDivers/Grial-UI-Kit-Support/wiki/Adding-Grial-on-existing-project:-Setting-up-Grial-theme-required-files#assemblyinfocs
But I am getting this error
Field 'Xamarin.Forms.ContentPage.ContentProperty' not found.
I resolved this issue. This issue was coming because of the different versions of xamarin forms used in my project and Grial UI kit.

Resources