I was wondering if it is possible to turn off the TreeView's ScrollViewer easily.
I have a UserControl with a Grid. One of the Cells has a few TreeViews inside a Stackpanel. The height of the Control sizes automatically depending on the height of the TreeViews, so there is no need for a scrollbar.
The problem is: I have a bunch of these in a ListBox with its own ScrollViewer, but when i am using the MouseWheel, scrolling stops when you are over a TreeView.
This is because the TreeView has its own ScrollViewer which steals the MouseWheel. I know this is probably possible by overriding the control template, but I hope there is an easier way.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…