How can I get all the ScrollContentPresenter in a ListView in CSharp source code?
Dear All
I want to get all the ScrollContentPresenter a ListView in CSharp source,not XAML.
Unfortunately, I can get it by use the member variables of the listview instance.
Should it be a member variable of listview instance? or a member variable of its member variable?
Thanks~~~~~
The visual tree is dumped as following(partial):
ScrollViewer
Grid
DockPanel
ScrollViewer
Grid <-- here is the header of listview
ScrollContentPresenter < I want to get this
ItemPresenter
VisualizingStackPanel
ListViewItem <-- This ListViewItem is related to the row in ListView
ListViewItem
ListViewItem
ListViewItem
ListViewItem
AdornerLayer
ScrollerBar
ScrollerBar
DockPanel
Sincerely

