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
close icon

Adding SfRotator inside of SfPopup

Hello, 
I'm attempting to use SfRotator inside of an SfPopup on full screen mode (transparent background), but I am getting an empty/not visible rotator currently. I'm curious if this is possible? Example code below:

 <sfPopup:SfPopupLayout StaysOpen="True" HorizontalOptions="Fill" VerticalOptions="Fill" >
        <sfPopup:SfPopupLayout.PopupView>
            <sfPopup:PopupView ShowFooter="False" ShowHeader="False" BackgroundColor="Transparent" AnimationMode="Zoom" IsFullScreen="True" >

                <sfPopup:PopupView.PopupStyle>
                    <sfPopup:PopupStyle BorderColor="Transparent"/>
                </sfPopup:PopupView.PopupStyle>

                <sfPopup:PopupView.ContentTemplate>
                    <DataTemplate>
                        <Grid HorizontalOptions="Fill" VerticalOptions="Fill" BackgroundColor="Transparent">
                           
                            <rotator:SfRotator x:Name="rotatorImage" SelectedDotColor="{DynamicResource accentColor}" ItemsSource="{Binding RotatorItems}"                                    BackgroundColor="Transparent">
                                <rotator:SfRotator.ItemTemplate>
                                    <DataTemplate>
                                        <Image Source="{Binding Image}" Aspect="AspectFill"/>
                                    </DataTemplate>
                                </rotator:SfRotator.ItemTemplate>
                            </rotator:SfRotator>
                         
                        </Grid>                  
                    </DataTemplate>
                </sfPopup:PopupView.ContentTemplate>
            </sfPopup:PopupView>
        </sfPopup:SfPopupLayout.PopupView>
    </sfPopup:SfPopupLayout>

1 Reply

MK Muneesh Kumar G Syncfusion Team May 23, 2019 09:04 AM UTC

Hi Trevor, 
 
Greetings from Syncfusion. 
 
We have validated your query, you can achieve your requirement by calling popup layout control show method in OnPageAppering() method as like below code snippet. 
 
 protected override void OnAppearing()
        {
            base.OnAppearing();
            popUp.Show(true);
        }
 
 
We have created a sample to achieve your requirement. Please find the sample from below link: 
 
Sample: 
 
Please get back us, if you have any queries. 
 
Regards, 
Muneesh Kumar G. 


Loader.
Live Chat Icon For mobile
Up arrow icon