Hello,
I tried to insert a Grid in a ScrollViewer on MainPage (without canvans). The problem is that when I open project in browser, I didn't see any scrollbar and I cant scroll contents. Do you have Idea to solve the issue?
Thanks
Mattia
Code: Select all
<Grid Background="White">
<ScrollViewer>
<StackPanel Orientation="Vertical">
<Grid Grid.Row="0" Height="56">
<Grid.Background>
<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
<GradientStop Color="#9F86FE" Offset="0"/>
<GradientStop Color="#5784FE" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Height="36">
<Border
VerticalAlignment="Stretch"
HorizontalAlignment="Center"
Width="55"
Background="Green" />
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<Rectangle Fill="White" Height="180"/>
</Grid>
<Grid Grid.Row="2" Height="1000">
<Border
VerticalAlignment="Stretch"
HorizontalAlignment="Center"
Width="55"
Background="Green" />
</Grid>
<Grid Grid.Row="3" >
<Border
Width="300"
Height="300"
Background="Red" />
</Grid>
</StackPanel>
</ScrollViewer>
</Grid>
Users browsing this forum: No registered users and 64 guests