WPF TreeView - How to scroll so expanded branch is visible

前端 未结 6 1789
孤城傲影
孤城傲影 2020-12-14 16:56

When I expand items in my treeview so that scrolling is necessary, a scrollbar appears. However, it doesn\'t scroll down for the newly expanded branch of items - they get cr

6条回答
  •  情歌与酒
    2020-12-14 17:17

    Use a dependency property on an IsSelected trigger: