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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scrollbars not working

Thread ID:





120755 Oct 12,2015 12:10 PM UTC Oct 13,2015 12:35 PM UTC WinRT 1
Tags: SfPdfViewer
Ric Silva
Asked On October 12, 2015 12:10 PM UTC

I have this following code

<Grid x:Name="minutesGrid" Height="1000" Width="1024" Background="White" >
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="50"/>
                    <RowDefinition Height="100"/>
                    <RowDefinition Height="750"/>
                    <RowDefinition Height="30"/>

                <StackPanel Grid.Row="1" Background="White" Height="50" Orientation="Vertical" >
                    <TextBlock x:Name="minutesTitle" Text="" FontFamily="Segoe UI Semilight" FontWeight="SemiLight" FontSize="24" TextAlignment="Center"  Foreground="{StaticResource BrandBrush}" Margin="0,15,0,0"></TextBlock>
                <StackPanel Grid.Row="2" Background="White">
                    <ScrollViewer HorizontalScrollBarVisibility="Disabled" HorizontalScrollMode="Disabled" VerticalScrollMode="Enabled" VerticalScrollBarVisibility="Visible" Height="100">
                        <TextBlock x:Name="minutesDesc" Text=""  FontFamily="Segoe UI Semilight" FontWeight="SemiLight" FontSize="24" Foreground="{StaticResource BrandBrush}" Margin="15,15,0,0" TextWrapping="WrapWholeWords"></TextBlock>
                <StackPanel  Grid.Row="3" Background="White">
                    <PdfViewer:SfPdfViewerControl x:Name="minutesPDF" Canvas.ZIndex="1"/>

and when i load the pdf it doesnt show the scrollbars or lets me do a scroll either with mousewheel or on tablet with fingers.

this is how i load my file

            var datapdf = await objService.DownloadFileService("teste.pdf",minutes.gappFile._id);

            PdfLoadedDocument pdf = new PdfLoadedDocument(Convert.FromBase64String(datapdf));
            await minutesPDF.LoadDocumentAsync(pdf);
            minutesPDF.ViewMode = Syncfusion.Windows.PdfViewer.PageViewMode.Normal;

do i need to add something else?
ill attach the file also 

Attachment: teste_99ccba1f.zip

Sathish Sivakumar [Syncfusion]
Replied On October 13, 2015 12:35 PM UTC

Hi Ric,

Since StackPanel has a default behavior to grow in one direction, scroll of the control included in the StackPanel will not be initiated without the height property being set to it. We have attached the simple sample in the following which resolves the above mentioned issue by setting the height of the SfPdfViewerControl which is in the StackPanel,


Sathish Sivakumar


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