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

Adding SfRotator inside of SfPopup

Thread ID:

Created:

Updated:

Platform:

Replies:

144793 May 22,2019 09:35 PM UTC May 23,2019 09:04 AM UTC Xamarin.Forms 1
loading
Tags: SfRotator
Trevor Christensen
Asked On May 22, 2019 09:35 PM UTC

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>

Muneesh Kumar G [Syncfusion]
Replied On 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. 


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