How we built Xamarin.Forms wrapper for SciChart mobile
Published: 2024-04-05 11:27:31

<!-- wp:paragraph -->
<p>Our customers often ask if we support Xamarin.Forms: <a href="https://www.scichart.com/questions/android/support-for-xamarin-forms">support for xamarin forms</a>,  SciChart<a href=" https://www.scichart.com/questions/android/scichart-in-xamarin-forms-shared-code"> in Xamarin.Forms shared code</a>, <a href="https://www.scichart.com/questions/android/example-to-use-xamarin-android-ios-chart-in-xamarin-forms">examples to use xamarin Android and iOS in Xamarin.Forms</a>) , but until now we supported only Xamarin Native that includes <a href="https://www.scichart.com/scichart-xamarin-ios-xamarin-android-bindings-alpha/">Xamarin.Android and Xamarin.iOS</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Xamarin Native does allow our customers to use power of SciChart on both Xamarin Native and Forms, but since we did not provide Xamarin.Forms wrappers before it required some additional work to be done on the customers’ side.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Xamarin.Forms allow to fully use all features provided by Forms (XAML and DataBinding) </strong>and now we are glad to announce the release of open-source wrappers for Xamarin.Forms which should cover this gap.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When making a decision about releasing Xamarin.Forms we were mindful about <strong>the enormous amount of boilerplate code</strong> we have to write to wrap SciChart code for each platform and furthermore support it, with all the breaking changes that could be introduced by new releases. Honestly, that scared us!</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The time we needed to write the wrappers could have been used on developing new features and new platforms, or even products, that is how laborious this task was.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>So we decided to use another approach and invest some time into developing some tools which would help us to avoid pain of writing same code for wrappers for each platform and more importantly help us to reduce time required to support this code in future.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="code-generation-and-requirements">Code generation and requirements</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The approach that we choose is to create code generator for Xamarin.Forms wrappers which writes most of the code for us. It does so based on some rules and some manually written metadata.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In this case, if there will be some breaking change in future release of Xamarin.Forms or Microsoft decides to deprecate it in favour of <a href="https://devblogs.microsoft.com/dotnet/introducing-net-multi-platform-app-ui/">.NET MAUI</a> we can simply update the generator! We can regenerate most of the code instead of manually locating and updating all problematic places.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>We can simply update the generator and most of the code will be regenerated instead of manually locating and updating all problematic places.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>We all agreed that the code generation is a cool idea and it solves a problem with supporting code, allowing to automate writing of repetitive code. But how to implement it and what exactly should it do?</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 id="we-did-a-research-from-which-we-created-a-list-of-requirements-">We did a research from which we created a list of requirements:</h3>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>We don't want to spend a lot of time on writing generator to support 100% code generation, because the cost of time resources to do so would not be justified. Therefore, we only require to automate generation of repetitive code parts. For the code that is used in one place only it is ok to write it manually.</li><li>Use existing tools/libraries if it's possible</li><li>It should be possible to add handwritten code at any class when necessary.</li><li>Metadata used by generator should be readable and if possible, support autocomplete and automatic scheme validation.</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2 id="decision-making">Decision Making</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>First of all, let's talk about tools that we have used in our generator.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The first tool we needed was <strong>to generate the C# code</strong>. We did not want to write this part on our own unless it is really necessary. Obviously, at first we took a look on <a href="https://github.com/dotnet/roslyn">Roslyn</a>. But it looked too complicated for our purpose, because its main purpose is to perform code analysis and not to generate code. There were some other open source options available, but in the end <strong>we choose <a href="https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/using-the-codedom">CodeDOM</a></strong>. It's developed by Microsoft, pretty easy to use and does exactly what we wanted to do.</p>
<!-- /wp:paragraph -->

<!-- wp:separator -->
<hr class="wp-block-separator"/>
<!-- /wp:separator -->

<!-- wp:paragraph -->
<p>Next, we had to decide <strong>what should be included into metadata</strong>, that we will used as input for our generator. To generate code, we needed to get information about type names, properties, methods, arguments, relations between types (base class, implemented interfaces, etc).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>At first we thought that ideal source of such information would be using reflection - we already have Xamarin Native assemblies for iOS and Android, so why don't use it. We <strong>used <a href="https://www.mono-project.com/docs/tools+libraries/libraries/Mono.Cecil/">Mono.Cecil</a> for this</strong> part, because System.Reflection which comes with .NET was unable to load some platform specific types and produced many exceptions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Unfortunately there were alot of problems with reflection only approach - it was very hard to merge information about types from different platforms to generate list of common methods and properties, and that is why we decided to declare what types, methods, properties should be wrapped in Xamarin.Forms explicitly and <strong>use reflection only as additional source of information</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:separator -->
<hr class="wp-block-separator"/>
<!-- /wp:separator -->

<!-- wp:paragraph -->
<p>Next question was <strong>how to write information about types</strong>. There were several potential solutions like use JSON, XML, YAML formats to describe types, then deserialize information and generate required source files. However, the problem with this approach was the lack of autocomplete for existing system types and there was no way to tell if there is an error in file until you run the generator.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>That is why we decided to take a different approach and <strong>use .NET type system to store information about how wrappers should be generated</strong>. The idea is to define an interface for each Xamarin.Forms wrapper class that should be generated and then annotate it and its parts using special attributes, which tell generator how it should generate wrapper for each platform. In this way we would get autocomplete for defining properties, methods for these interfaces and if there is some error in code .NET compiler will let us know when we try to compile this code. Then generator, using reflection reads information from these annotated types and generates Xamarin.Forms class which can be used in application and platform specific wrapper for SciChart class for each platform.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="project-structure">Project structure</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Based on the above research we organized our Xamarin.Forms project like this:</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="https://www.scichart.com/wp-content/uploads/2020/08/project-1.png" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Xamarin.Forms wrapper consist of 4 libraries:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>SciChart.Xamarin.Views.Core where we store information which then is used by generator</li><li>SciChart.Xamarin.Views where we have Xamarin.Forms classes, which are used as public API by target applications</li><li>SciChart.Xamarin.Android.Renderer and SciChart.Xamarin.iOS.Renderer that contain platform specific code (renderers, wrappers for native code etc) and reference native libraries for iOS and Android platforms</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2 id="simple-example">Simple example</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>To create a simple example let's bind a simple SciChart class and few properties and methods. For this example we'll bind Camera3D class which is used by 3D chart. We start from declaring ICamera3D interface in Core assembly where we declare metadata used by generator. Then we add some attributes like ClassDeclarartion which tells that this interface is used for generating of Xamarin.Forms around specified native type, and InjectNativeSciChartObject which tells that generator should inject native object via constructor:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"[ClassDeclaration(u0022Camera3Du0022, typeof(View))]n[InjectNativeSciChartObject]npublic interface ICamera3D : INativeSciChartObjectWrappern{n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">[ClassDeclaration("Camera3D", typeof(View))]
[InjectNativeSciChartObject]
public interface ICamera3D : INativeSciChartObjectWrapper
{
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>This should be enough to generate wrappers around native Camera3D class for each platforms and Xamarin.Forms wrapper class which uses Xamarin.Forms View as base class ( this allows to declare camera in XAML ).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Now let's declare some properties and methods by using BindablePropertyDefinition and MethodDeclaration attributes:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"[ClassDeclaration(u0022Camera3Du0022, typeof(View))]n[InjectNativeSciChartObject]npublic interface ICamera3D : INativeSciChartObjectWrappern{n    [BindablePropertyDefinition()]n    float FieldOfView { get; set; }nn    [BindablePropertyDefinition()]n    float NearClip { get; set; }nn    [BindablePropertyDefinition()]n    float FarClip { get; set; }nn    [MethodDeclaration()]n    void ZoomToFit();n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">[ClassDeclaration("Camera3D", typeof(View))]
[InjectNativeSciChartObject]
public interface ICamera3D : INativeSciChartObjectWrapper
{
    [BindablePropertyDefinition()]
    float FieldOfView { get; set; }

    [BindablePropertyDefinition()]
    float NearClip { get; set; }

    [BindablePropertyDefinition()]
    float FarClip { get; set; }

    [MethodDeclaration()]
    void ZoomToFit();
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>This is simple case with binding for primitive type.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Next let's add more complex and try to bind ProjectionMode property which uses Enum type. First we need to declare this type in Core so it can be used in ICamera3D interface:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"[EnumDefinition]npublic enum CameraProjectionModen{n    Perspective,n    Orthogonal,n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">[EnumDefinition]
public enum CameraProjectionMode
{
    Perspective,
    Orthogonal,
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>This should tell generator to generate helper class for converting Xamarin.Forms CameraProjectionMode to native CameraProjectionMode which are called CameraProjectionModeToXamarin() and CameraProjectionModeFromXamarin(). In our case values for native enum have the same name as enum used by Xamarin.Forms so there is no need to add anything else, but it's possible to customize generation if it's required. Now we can declare property in ICamera3D interface:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"[ClassDeclaration(u0022Camera3Du0022, typeof(View))]n[InjectNativeSciChartObject]npublic interface ICamera3D : INativeSciChartObjectWrappern{n    [BindablePropertyDefinition()]n    float FieldOfView { get; set; }nn    [BindablePropertyDefinition()]n    float NearClip { get; set; }nn    [BindablePropertyDefinition()]n    float FarClip { get; set; }nn    [BindablePropertyDefinition()]n    [NativePropertyConverterDeclaration(u0022CameraProjectionModeu0022)]n    CameraProjectionMode ProjectionMode { get; set; }nn    [MethodDeclaration()]n    void ZoomToFit();n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">[ClassDeclaration("Camera3D", typeof(View))]
[InjectNativeSciChartObject]
public interface ICamera3D : INativeSciChartObjectWrapper
{
    [BindablePropertyDefinition()]
    float FieldOfView { get; set; }

    [BindablePropertyDefinition()]
    float NearClip { get; set; }

    [BindablePropertyDefinition()]
    float FarClip { get; set; }

    [BindablePropertyDefinition()]
    [NativePropertyConverterDeclaration("CameraProjectionMode")]
    CameraProjectionMode ProjectionMode { get; set; }

    [MethodDeclaration()]
    void ZoomToFit();
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>Code is similar, but now we have used additional attribute which is called NativePropertyConverterDeclaration. This attribute tells generator to generate additional XXXToXamarin() and XXXFromXamarin() call for property getter and setter which converts Xamarin.Forms type to native type. In our case it will insert CameraProjectionModeToXamarin() and CameraProjectionModeFromXamarin() calls which were automatically generated for CameraProjectionMode enum.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 id="other-attributes">Other attributes</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Our generator has support of some other attributes which can be used for more complex cases:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>AbstractClassDefinition. Should be used to tell generator that this class is abstract. In this case generator only generates Xamarin.Forms class and there is no need to generate native wrapper.</li><li>EnumValueDefinition. Used to adjust enum mappings in case if enum values have different names on native platforms.</li><li>GenericParamsDeclaration. Used to tell generator that target wrapper should be generic class.</li><li>InjectAndroidContext. Android specific attribute for classes which require Android Context class in their constructors.</li><li>PropertyDeclaration. Attribute which tells generator to generate simple .NET property without creating BindableProperties.</li><li>TypeConverterDeclaration. Attribute which tells generator that Xamarin.Forms property should use specified TypeConverter ( used in XAMl )</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2 id="limitations-and-handwriting-code">Limitations and handwriting code</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The code above allows to cover most of the cases, but not all of them. In some rare cases it is still too hard to implement auto generating or simply is not necessary as the code is used in one place. In those cases we write code on our own and that's why all generated classes are generated as partial classes. This allows us to create a separate file with class in same namespace as auto generated one and add code which can't be generated. Then thanks to partial classes feature auto generated and handwritten code is combined and compiled into Xamarin.Forms wrappers. Currently this is how we implemented some events exposed by SciChart, some mappings for types which should be handled with extreme caution because of complexity (Ranges, DataSeries, Styles etc).</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 id="chart-example">Chart example</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Everything above allowed us to use SciChart with Xamarin.Forms. Let's create a &nbsp;simple chart (code will be familiar to our WPF users).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>First of all we need to declare it. In this example we'll do it in XAML, but you can do it in code behind:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"u003c?xml version=u00221.0u0022 encoding=u0022utf-8u0022 ?u003enu003cContentPage xmlns=u0022http://xamarin.com/schemas/2014/formsu0022n             xmlns:x=u0022http://schemas.microsoft.com/winfx/2009/xamlu0022n             xmlns:d=u0022http://xamarin.com/schemas/2014/forms/designu0022n             xmlns:mc=u0022http://schemas.openxmlformats.org/markup-compatibility/2006u0022n             xmlns:visuals=u0022clr-namespace:SciChart.Xamarin.Views.Visuals;assembly=SciChart.Xamarin.Viewsu0022n             xmlns:renderableSeries=u0022clr-namespace:SciChart.Xamarin.Views.Visuals.RenderableSeries;assembly=SciChart.Xamarin.Viewsu0022n             xmlns:axes=u0022clr-namespace:SciChart.Xamarin.Views.Visuals.Axes;assembly=SciChart.Xamarin.Viewsu0022n             xmlns:modifiers=u0022clr-namespace:SciChart.Xamarin.Views.Modifiers;assembly=SciChart.Xamarin.Viewsu0022n             mc:Ignorable=u0022du0022n             x:Class=u0022TestApp.UI.Examples.LineChartu0022u003en    u003cContentPage.Contentu003en        u003cvisuals:SciChartSurface HorizontalOptions=u0022Fillu0022 VerticalOptions=u0022Fillu0022u003en            u003cvisuals:SciChartSurface.RenderableSeriesu003en                u003crenderableSeries:FastLineRenderableSeries x:Name=u0022LineSeriesu0022 StrokeStyle=u0022#FF279B27, 2u0022/u003en            u003c/visuals:SciChartSurface.RenderableSeriesu003enn            u003cvisuals:SciChartSurface.XAxesu003en                u003caxes:NumericAxis/u003en            u003c/visuals:SciChartSurface.XAxesu003enn            u003cvisuals:SciChartSurface.YAxesu003en                u003caxes:NumericAxis/u003en            u003c/visuals:SciChartSurface.YAxesu003enn            u003cvisuals:SciChartSurface.ChartModifiersu003en                u003cmodifiers:ModifierGroupu003en                    u003cmodifiers:PinchZoomModifier/u003en                    u003cmodifiers:ZoomPanModifier ReceiveHandledEvents=u0022trueu0022/u003en                    u003cmodifiers:ZoomExtentsModifier/u003en                u003c/modifiers:ModifierGroupu003en            u003c/visuals:SciChartSurface.ChartModifiersu003enn        u003c/visuals:SciChartSurfaceu003en    u003c/ContentPage.Contentu003enu003c/ContentPageu003en","proglang":"language-xml"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-xml">&lt;?xml version="1.0" encoding="utf-8" ?>
&lt;ContentPage 
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:visuals="clr-namespace:SciChart.Xamarin.Views.Visuals;assembly=SciChart.Xamarin.Views"
             xmlns:renderableSeries="clr-namespace:SciChart.Xamarin.Views.Visuals.RenderableSeries;assembly=SciChart.Xamarin.Views"
             xmlns:axes="clr-namespace:SciChart.Xamarin.Views.Visuals.Axes;assembly=SciChart.Xamarin.Views"
             xmlns:modifiers="clr-namespace:SciChart.Xamarin.Views.Modifiers;assembly=SciChart.Xamarin.Views"
             mc:Ignorable="d"
             x:Class="TestApp.UI.Examples.LineChart">
    &lt;ContentPage.Content>
        &lt;visuals:SciChartSurface HorizontalOptions="Fill" VerticalOptions="Fill">
            &lt;visuals:SciChartSurface.RenderableSeries>
                &lt;renderableSeries:FastLineRenderableSeries x:Name="LineSeries" StrokeStyle="#FF279B27, 2"/>
            &lt;/visuals:SciChartSurface.RenderableSeries>

            &lt;visuals:SciChartSurface.XAxes>
                &lt;axes:NumericAxis/>
            &lt;/visuals:SciChartSurface.XAxes>

            &lt;visuals:SciChartSurface.YAxes>
                &lt;axes:NumericAxis/>
            &lt;/visuals:SciChartSurface.YAxes>

            &lt;visuals:SciChartSurface.ChartModifiers>
                &lt;modifiers:ModifierGroup>
                    &lt;modifiers:PinchZoomModifier/>
                    &lt;modifiers:ZoomPanModifier ReceiveHandledEvents="true"/>
                    &lt;modifiers:ZoomExtentsModifier/>
                &lt;/modifiers:ModifierGroup>
            &lt;/visuals:SciChartSurface.ChartModifiers>

        &lt;/visuals:SciChartSurface>
    &lt;/ContentPage.Content>
&lt;/ContentPage>
</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>Here we declare SciChartSurface with one numeric XAxis and one numeric YAxis. Also we add line series and add some interactivity using ChartModifier API.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Next step is to introduce some data in code behind:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"public partial class LineChart : ContentPagen{n    public LineChart()n    {n        InitializeComponent();n    }nn    protected override void OnAppearing()n    {n        base.OnAppearing();nn        var dataSeries = new XyDataSeriesu003cdouble, doubleu003e();nn        for (int i = 0; i u003c 100; i++)n        {n            var y = Math.Sin(i * 0.05);n            dataSeries.Append(i, y);n        }nn        LineSeries.DataSeries = dataSeries;n    }n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">public partial class LineChart : ContentPage
{
    public LineChart()
    {
        InitializeComponent();
    }

    protected override void OnAppearing()
    {
        base.OnAppearing();

        var dataSeries = new XyDataSeries&lt;double, double>();

        for (int i = 0; i &lt; 100; i++)
        {
            var y = Math.Sin(i * 0.05);
            dataSeries.Append(i, y);
        }

        LineSeries.DataSeries = dataSeries;
    }
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>This code declares DataSEries with sinewave and assigns it to line series, that we declared in XAML before.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The last step is to add license key. To do this we suggest to add next code in App class of your application:</p>
<!-- /wp:paragraph -->

<!-- wp:scichart/code-snippet {"code":"public partial class App : Xamarin.Forms.Applicationn{n    public App ()n    {n        InitializeComponent();nn        // Setup SciChart Licensesn        string iosAndroidLicense = ...;nn        using (var manager = new SciChartLicenseManager())n        {n            manager.AddLicense(SciChartPlatform.Android, iosAndroidLicense);n            manager.AddLicense(SciChartPlatform.iOS, iosAndroidLicense);n        }nn        ...n    }nn    ...n}","proglang":"language-csharp"} -->
<div class="wp-block-scichart-code-snippet"><pre class="line-numbers code-toolbar language-csharp">public partial class App : Xamarin.Forms.Application
{
    public App ()
    {
        InitializeComponent();

        // Setup SciChart Licenses
        string iosAndroidLicense = ...;

        using (var manager = new SciChartLicenseManager())
        {
            manager.AddLicense(SciChartPlatform.Android, iosAndroidLicense);
            manager.AddLicense(SciChartPlatform.iOS, iosAndroidLicense);
        }

        ...
    }

    ...
}</pre></div>
<!-- /wp:scichart/code-snippet -->

<!-- wp:paragraph -->
<p>When you run application on Android/iOS device you should see something like this:</p>
<!-- /wp:paragraph -->

<!-- wp:gallery {"linkTo":"none"} -->
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"id":33055,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://www.scichart.com/wp-content/uploads/2022/05/android_screenshot-1.png" alt="" class="wp-image-33055"/></figure>
<!-- /wp:image -->

<!-- wp:image {"id":33282,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://www.scichart.com/wp-content/uploads/2022/05/ios_screenshot-1.png" alt="" class="wp-image-33282"/></figure>
</figure>
<!-- /wp:gallery -->


<h2>Link to the Xamarin Forms binding generator on Github</h2>


<!-- wp:mamaduka/bookmark-card {"url":"https://github.com/abtsoftware/scichart.xamarin.forms","className":"is-style-horizontal"} -->
<figure class="wp-block-mamaduka-bookmark-card is-style-horizontal"><a class="bookmark-card" href="https://github.com/abtsoftware/scichart.xamarin.forms"><div class="bookmark-card__image"><img src="https://www.scichart.com/wp-content/uploads/2022/12/1670587093639322d54e045.png"/></div><div class="bookmark-card__content"><div class="bookmark-card__title">GitHub - ABTSoftware/SciChart.Xamarin.Forms: Xamarin Forms custom renderers for SciChart iOS, Android and WPF</div><div class="bookmark-card__description">Xamarin Forms custom renderers for SciChart iOS, Android and WPF - GitHub - ABTSoftware/SciChart.Xamarin.Forms: Xamarin Forms custom renderers for SciChart iOS, Android and WPF</div><div class="bookmark_card__meta"><img class="bookmark_card__meta-icon" src="https://www.scichart.com/wp-content/uploads/2022/09/favicon.svg"/><span class="bookmark_card__meta-publisher">github.com</span></div></div></a></figure>
<!-- /wp:mamaduka/bookmark-card -->

<!-- wp:paragraph -->
<p>We've open sourced the Xamarin.Forms binding generator for SciChart iOS/Android and published it to Github. Please find a link to the project above.</p>
<!-- /wp:paragraph -->