I would like to have an interface with three components, one next to the other. The first was a ListView, and the other two were grids.
Since the components will overflow on the right, I want to put them in a ScrollViewer. I did not succeed. I tried to make a really simple example, but I canβt try.
<ScrollViewer Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="600" Height="400">
<StackPanel Width="1200" Height="400" Orientation="Horizontal">
<Border Background="AntiqueWhite" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
<Border Background="Blue" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
<Border Background="LimeGreen" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
</StackPanel>
</ScrollViewer>
As you can see, ScrollViewer is inside the grid. What did I miss?
Jonas source
share