After searching for posts regarding ScrollView not showing I couldn’t find one example that is similar with mine.
Refer to the code below, my ScrollView is visible but it is not scrollable. I wonder which part I need to change to make it work?
<Page x:Class="Apps"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Title="Apps"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="auto" Height="auto">
<ScrollViewer>
<StackPanel>
<Label Content="All applications stored on desktop computer" Height="28" Name="Label2" FontSize="16" FontWeight="Bold" HorizontalContentAlignment="Center" Margin="5" />
<Grid Margin ="10" HorizontalAlignment="Left" Name="gridApps" VerticalAlignment="Top" Width="auto">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
</Grid>
</StackPanel>
</ScrollViewer>
</Page>
Seems like setting Height=” a value here” at ScrollViewer works