开发者

Creating a Hyperlink to a different TabItem in WPF

开发者 https://www.devze.com 2023-01-21 08:07 出处:网络
I have a WPF application with multiple TabItems within a TabControl. In one of the TabItems, I want to have a Hyperlink that when clicked, changes the view from the current TabItem, to one of the othe

I have a WPF application with multiple TabItems within a TabControl. In one of the TabItems, I want to have a Hyperlink that when clicked, changes the view from the current TabItem, to one of the other TabItems.

I've looked into the NavigateURI property of Hyperlink but I haven't found a way to set that to be a separa开发者_如何学Pythonte tab in the same window. Any thoughts on how to do this?


Just make a button, style it like a hyperlink, and change the tab control tabindex on the click of the button.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号