Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当从一个选项卡上的元素触发事件时,如何让处理程序将视图切换到另一个选项卡。
我正在寻找如何在 C# 代码中执行此操作,而不是 xaml。我做了研究,找不到 ac# 解决方案。
TabControl.SelectedIndex = <Integer index of the tab you want to display in the 0-based Tab array>