VB.NET WPF中的自动TabControl [英] Automatic TabControl in VB.NET WPF

查看:72
本文介绍了VB.NET WPF中的自动TabControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在制作天气预报。我希望能够添加一个选项卡控件,在这么多秒后自动更改为下一个选项卡。如果可能的话,我希望标签可以向右或向左滑动。怎么可以实现呢?
我知道如何使标签在标准VB.NET中自动更改,但不能在WPF中更改。

I am making a weather program. I would like to be able to add in a tab control that changes to the next tab automatically after so many seconds. I would like the tab to either slide to the right or left when it changes if possible. How could this be accomplished? I know how to make the tabs change automatically in standard VB.NET but not in WPF.

谢谢!

推荐答案

要更改标签,您可以设置tabcontrol的SelectedIndex属性。 至于动画,因为你需要闯入TabControl的模板,我认为这很难,如果不是不可能的话。
To change tabs you can set the SelectedIndex property of the tabcontrol.  As for an animation since you would need to break into the template for the TabControl I think this would difficult if not impossible.


这篇关于VB.NET WPF中的自动TabControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆