[英]SfCharts not displaying using Xamarin forms for windows 8.1
Hi i am just trying to display a simple chart using syncfusion in my windows application in Xamarin forms. 嗨,我只是想在Xamarin表单的Windows应用程序中使用syncfusion显示一个简单的图表。 The code i currently have compiles fine however when i run it only a blank screen is displayed.
我当前拥有的代码可以很好地编译,但是当我运行它时,只会显示一个空白屏幕。 here is the code i have:
这是我的代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Syncfusion.SfChart.XForms;
using Syncfusion.Compression;
namespace WiMation.SMAG.Desktop.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PatrolReport : ContentPage
{
public PatrolReport()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
this.BindingContext = new ViewModel();
SfChart chart = new SfChart();
//Initializing Primary Axis
CategoryAxis primaryAxis = new CategoryAxis();
chart.PrimaryAxis = primaryAxis;
//Initializing Secondary Axis
NumericalAxis secondaryAxis = new NumericalAxis();
chart.SecondaryAxis = secondaryAxis;
Content = chart;
}
}
}
Syncfusion has stopped to providing support for Xamarin Forms.Windows 8.1 and Xamarin Forms Windows Phone from product version v14.3.0.52 This is mentioned in their release notes Link: https://help.syncfusion.com/xamarin/release-notes/v14.4.0.15?type=all#common Syncfusion已停止提供对Xamarin Forms的支持。产品版本v14.3.0.52的Windows 8.1和Xamarin Forms Windows Phone的发行说明中提到链接: https ://help.syncfusion.com/xamarin/release-notes/ v14.4.0.15?类型=共同所有#
So, if you have installed any of product version above v14.3.0.52, Syncfusion.SfChart.WinRT and Syncfusion.SfChart.XForms.WinRT assemblies will not available in your Windows 8.1 project. 因此,如果您安装了v14.3.0.52以上的任何产品版本,则Windows 8.1项目中将不提供Syncfusion.SfChart.WinRT和Syncfusion.SfChart.XForms.WinRT程序集。 Therefore, SfChart has not been displayed in output.
因此,SfChart尚未显示在输出中。
If you want to use Xamarin.Forms Windows 8.1, then you must use product version v14.3.0.52. 如果要使用Xamarin.Forms Windows 8.1,则必须使用产品版本v14.3.0.52。 So that, Syncfusion.SfChart.WinRT and Syncfusion.SfChart.XForms.WinRT assemblies will be included in your Windows 8.1 project.
因此,Syncfusion.SfChart.WinRT和Syncfusion.SfChart.XForms.WinRT程序集将包含在Windows 8.1项目中。
Otherwise, you can Xamarin.Forms UWP platform instead of Windows 8.1. 否则,您可以使用Xamarin.Forms UWP平台而不是Windows 8.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.