Fade between Tab Pages in a Tab Control

前端 未结 5 779
既然无缘
既然无缘 2021-02-06 17:46

I have a Tab Control with multiple Tab Pages. I want to be able to fade the tabs back and forth. I don\'t see an opacity option on the Tab Controls. Is there a way to cause a fa

5条回答
  •  死守一世寂寞
    2021-02-06 18:00

    I don't believe that the WPF TabControl can be brought to fade from one TabItem to the next, since it is not equipped to display multiple TabItems simultaneously.

    You could try to emulate this by stitching together two ListViews (one for the tab strip and one for the panel) and add the effect into the ControlTemplate of the latter. Use the ControlTemplates of the TabControl and the ListView as starting point.

提交回复
热议问题