Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I am getting the error mentioned above when I try to implement a data template selector on the sfRotator control. 


Running on Visual Studio Enterprise 2019
Syncfusion control version 17.1.0.47

        <ResourceDictionary>

            <DataTemplate x:Key="SampleTemplateTextLine">
                <ViewCell>
                    <local:TextLine
                        HorizontalOptions="FillAndExpand"
                        Columns="{Binding Columns}" />
                </ViewCell>
            </DataTemplate>

            <DataTemplate x:Key="SampleTemplateEmptyLine">
                <ViewCell>
                    <BoxView
                        BackgroundColor="Transparent"
                        HorizontalOptions="FillAndExpand"
                        HeightRequest="10"/>
                </ViewCell>
            </DataTemplate>

            <local:SampleTemplateSelector x:Key="SampleTemplateSelector"
                SampleTemplateTextLine="{StaticResource SampleTemplateTextLine}"
                SampleTemplateEmptyLine="{StaticResource SampleTemplateEmptyLine}" />
        </ResourceDictionary>

            <sfRotator:SfRotator
                HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand"
                NavigationStripMode="Dots"
                NavigationDirection="Horizontal"
                ItemsSource="{Binding SampleList}"
                ItemTemplate="{StaticResource SampleTemplateSelector}">
            </sfRotator:SfRotator>