Fade between Tab Pages in a Tab Control

前端 未结 5 774
既然无缘
既然无缘 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 17:57

    There is no magic Fade switch in the standard windows control.

    You could dump the content of the tab to a bitmap (using DrawToBitmap or CopyFromScreen?), show that bitmap in front of the TabControl, switch tabs, and then fade the bitmap.

提交回复
热议问题