I am developing a windows application,
I have a Parent scroll viewer and inside it there is child scrollviewer and a listbox.
I want to know if there is a way to scroll a listbox(which is fixed in the footer of page) automatically as soon as the scrollviewer present above it has ended its scrolling.
Attached below is the reference image.
Please help as I am new to windows development.
Update1:
Adding the below code as basis:
<ScrollViewer Name="Scroll1">//parent scrollViewer
<Grid Name="ScrollContent">
<Grid.RowDefinitions>
<RowDefinition Height="500"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollViewer Name="A" Grid.Row="0" Grid.Column="0">//child scrollViewer
---//Code to display Title1
<Listbox>
---
---
</Listbox>
--
</ScrollViewer>
<Grid Name="B" Grid.Row="1" Grid.Column="0">
---//Code to display Title2
<Listbox>
---
---
</Listbox>
</Grid>
</Grid>
</ScrollViewer>
Please let me know if there is any workaround.

Here are the steps to take to achieve this:
Heightof theScrollViewerand save in avariable.eventfor when theScrollViewerview changes.ifstatement to check if theScrollViewervertical-offsetif equal to theHeight. I.e if you've scrolled to the end.ScrollViewerto enable yourListBoxscroll.If you do not want to hide the visibility of the
ScrollViewerat all, you must then utilize the flexibility ofGridchildren properties.Do these in xaml
ScrollViewerandListBoxinside aGrid.Vertical-Definitionsof theGridand set the firstRowHeightasAuto.RowHeightas*.ScrollViewerRow0and theListBox(with a fixed height)Row1.In c# In the
ScrollViewerScrollChangedevent, once thevertical-offsetis equal to theHeightof theGridcreated above, modify theGridproperties by reversing the amount of space they have on the screen. I.e change the Scroll ViewerRowHeightto*(fixed) and change theListBoxRowHeighttoAuto.Provide feedback on how this goes.
If you have provided some codes to show how you've tried to fix this yourself, perhaps I would have modified the errors in it. But I hope my answer helps.