We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is it possible to embed SfSpreadsheet in Xamarin.Forms

 Hi, 
Is it possible to embed SfSpreadsheet in Xamarin.Forms .net standard project? We would like to use SfSpreadsheet functionality in Xamarin.Forms app when it runs on UWP (on Android and iOS we would use some placeholders about not supporting feature).
I've tried to do this by normal way, but it seems that Xamarin can't see SfSpreadsheet namespace.

<ContentPage
    x:Class="mSimple.DMS.Attachments.AttachmentSpreadsheetPage"
    xmlns:androidLocal="clr-namespace:SimpleColorPicker.Droid;assembly=SimpleColorPicker.Droid;targetPlatform=Android"
    xmlns:androidWidget="clr-namespace:Android.Widget;assembly=Mono.Android;targetPlatform=Android"
    xmlns:ios="clr-namespace:UIKit;assembly=Xamarin.iOS;targetPlatform=iOS"
    xmlns:win="clr-namespace:Syncfusion.UI.Xaml.Spreadsheet;assembly=Syncfusion.SfSpreadsheet.UWP; targetPlatform=Windows">
    <ContentPage.Content>
        <StackLayout BackgroundColor="Green">
            <Label
                FontAttributes="Bold"
                HorizontalOptions="Center"
                Text="Native Views Demo" />
            <Entry IsEnabled="{Binding IsSwitchOn}" Placeholder="This Entry is bound to the native switch" />
            <ios:UISwitch
                On="{Binding Path=IsSwitchOn, Mode=TwoWay, UpdateSourceEventName=ValueChanged}"
                OnTintColor="{x:Static ios:UIColor.Red}"
                ThumbTintColor="{x:Static ios:UIColor.Blue}" />
            <androidWidget:Switch
                x:Arguments="{x:Static androidLocal:MainActivity.Instance}"
                Checked="{Binding Path=IsSwitchOn, Mode=TwoWay, UpdateSourceEventName=CheckedChange}"
                Text="Enable Entry?" />

            <win:SfSpreadsheet x:Name="spreadsheet" FormulaBarVisibility="Visible" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

Thanks in advance

1 Reply

DY Deivaselvan Y Syncfusion Team April 10, 2019 01:40 PM UTC

Hi Przemyslaw,

Thank you for contacting Syncfusion support.

Your requirement to use SfSpreadsheet functionality in Xamarin.Forms app is not feasible to achieve; hence it is not possible to use custom controls in PCL project. We regret for the inconvenience caused.

Regards, 
Deivaselvan 


Loader.
Live Chat Icon For mobile
Up arrow icon