Question

My StackPanel which is inside a ScrollViewer isn't scrolling for some reason.

Code:

<ScrollViewer Height="478" Name="scrollerButtons" Width="Auto" Canvas.Left="668" Canvas.Top="2" VerticalAlignment="Bottom" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center" VerticalContentAlignment="Bottom" HorizontalAlignment="Left">
        <StackPanel Name="stackPanelButtons" Orientation="Vertical" Canvas.Left="162" Canvas.Top="43" VerticalAlignment="Center" HorizontalAlignment="Center" Width="Auto">
            <Image Height="60" Name="imgA" Source="Images/a.png" Stretch="Fill" Width="60" Tap="imgA_Tap"></Image>
            <Image Height="60" Name="imgB" Source="Images/b.png" Stretch="Fill" Width="60" Tap="imgB_Tap"></Image>
        </StackPanel>
 </ScrollViewer>
Was it helpful?

Solution

Change ScrollViewer.VerticalScrollBarVisibility="Disabled" from Disabled to Auto.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top