I created a xamarin forms project which is using oxyplot and Rg.Plugins.Popup
xamarin forms.
However, the graph does not work as excepted. I modified code refer to the link, but graph not show on UWP .
In addition, I init Rg.Plugins.Popup
and oxyplot
with follow code, I don't know what I doing wrong. Please help. thanks in advance.
in UWP project App.xaml.cs
Xamarin.Forms.Forms.Init(e, Rg.Plugins.Popup.Popup.GetExtraAssemblies());
List<Assembly> assembliesToInclude = new List<Assembly>();
//Now, add in all the assemblies your app uses
assembliesToInclude.Add(typeof(OxyPlot.PlotModel).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(OxyPlot.PlotController).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(OxyPlot.Windows.PlotView).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(OxyPlot.Xamarin.Forms.PlotView).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(OxyPlot.Xamarin.Forms.Platform.UWP.PlotViewRenderer).GetTypeInfo().Assembly);
try
{
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
// replaces Xamarin.Forms.Forms.Init(e);
}
catch (Exception ex) { }
OxyPlot.Xamarin.Forms.Platform.UWP.PlotViewRenderer.Init();
Xamarin forms and oxyplot version is
OxyPlot.Xamarin.Forms : 1.1.0-unstable0011
Xamarin.Forms: 4.2.0.709249