Make logical tree work for ScrollViewer.