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

SfRotator doesn't work inside a <StackLayout>

Insida a <Grid> or <ContentPage.Content> it works pefectly. But insite a <SlackLayout> it shows a black page.

<Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <rotator:SfRotator x:Name="rotator"  
                               Grid.Row="0"
                               Grid.Column="0"
                               NavigationDelay="2000" 
                               ItemsSource="{Binding ImageCollection}" 
                               SelectedIndex="2" NavigationDirection="Horizontal" 
                               NavigationStripMode="Dots" BackgroundColor="#ececec" 
                               NavigationStripPosition="Bottom">
                <rotator:SfRotator.ItemTemplate>
                    <DataTemplate>
                        <Image  Source="{Binding Image}"/>
                    </DataTemplate>
                </rotator:SfRotator.ItemTemplate>
            </rotator:SfRotator>
        </Grid>

With that it doesn't work:

    <StackLayout>
            <rotator:SfRotator x:Name="rotator"  
                               NavigationDelay="2000" 
                               ItemsSource="{Binding ImageCollection}" 
                               SelectedIndex="2" NavigationDirection="Horizontal" 
                               NavigationStripMode="Dots" BackgroundColor="#ececec" 
                               NavigationStripPosition="Bottom">
                <rotator:SfRotator.ItemTemplate>
                    <DataTemplate>
                        <Image  Source="{Binding Image}"/>
                    </DataTemplate>
                </rotator:SfRotator.ItemTemplate>
            </rotator:SfRotator>

    </StackLayout>




1 Reply

RK Rathana Kumar Sekar Syncfusion Team June 5, 2017 11:07 AM UTC

Hi Luis Alfredo Stockler Filho, 

We were able to reproduce the reported issue "Empty view with Rotator control inside the StackLayout " and have already logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

Support Website Link:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  

Regards,
Rathanakumar S.

 


Loader.
Up arrow icon