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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to embed SfSpreadsheet in Xamarin.Forms

Thread ID:

Created:

Updated:

Platform:

Replies:

143882 Apr 9,2019 07:00 AM UTC Apr 10,2019 01:40 PM UTC UWP 1
loading
Tags: SfSpreadsheet
Przemyslaw Tosinski
Asked On April 9, 2019 07:00 AM UTC

 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

Deivaselvan Y [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon