Tabcontrol援助 [英] Tabcontrol Assistance
本文介绍了Tabcontrol援助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个程序,我想为tabcontrol创建自定义选项卡。我有一个我想要使用的图像,但我无法弄清楚如何使它们作为我的tabcontrol的标签。
I am working on a program, and I want to create custom tabs for a tabcontrol. I have an image that I want to use, but I cannot figure out how to make them act as tabs for my tabcontrol.
提前致谢!
Hersh K. Bhargava
Hersh K. Bhargava
推荐答案
这是一个非常好的演练:
Here is a really good walkthrough:
http://www.switchonthecode.com/tutorials/the-wpf-tab-control-inside-and-out
您可能需要将图像作为< Image />放入标签页。控制或更改选项卡的样式,具体取决于您要执行的操作。那个例子应该有两个。
You probably need to either put the image into the tab as an <Image /> control or change the Style of the tab, depending on what you want to do. That example should have both.
这篇关于Tabcontrol援助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文