locked
WebView Inside a ScrollView not working RRS feed

  • Question

  • User31568 posted

    Hi,

    I have a simple WebView inside a ScrollView but the problem it's not scrolling anything.

    here is my code:

    <ScrollView Grid.Row="0">
        <Grid Grid.Row="0" RowSpacing="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
    
            <SyncfusionRotator:SfRotator x:Name="RotatorAdDetails" Grid.Row="0" EnableLooping="False" EnableAutoPlay="False" NavigationDelay="4000" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
                <SyncfusionRotator:SfRotator.HeightRequest>
                    <OnIdiom x:TypeArguments="x:Double" Phone="300" Tablet="400" />
                </SyncfusionRotator:SfRotator.HeightRequest>
                <SyncfusionRotator:SfRotator.ItemTemplate>
                    <DataTemplate>
                        <StackLayout ClassId="{Binding user_guid}">
                            <FFImageLoading:CachedImage Source="{Binding media_file}" ClassId="{Binding ad_guid}" LoadingPlaceholder="AdPlaceholder.png" FadeAnimationEnabled="True" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Aspect="AspectFill" DownsampleToViewSize="true">
                            </FFImageLoading:CachedImage>
                        </StackLayout>
                    </DataTemplate>
                </SyncfusionRotator:SfRotator.ItemTemplate>
            </SyncfusionRotator:SfRotator>
    
            <WebView x:Name="WebViewAdDetailsDescription" Grid.Row="1" Margin="5" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
        </Grid>
    </ScrollView>
    

    How can I fix that please?

    Thanks, Jassim

    Saturday, November 9, 2019 5:28 PM

All replies

  • User388131 posted

    Hello ,

    Had a also problem with the rotator not showing , maybe the Rotator is the cause

    See here

    https://www.syncfusion.com/forums/148758/rotator-in-scrollview-not-showing

    Sunday, November 10, 2019 6:39 AM
  • User369979 posted

    WebView has its own scroll control. If you place a webview inside the scroll view there will be a conflict issue. You only need to set the fixed height for your list view and web view. The content will be scrolled if they have a larger size than its parent control.

    Monday, November 11, 2019 7:49 AM