将控件添加到TabControl [英] Adding controls to TabControl

查看:344
本文介绍了将控件添加到TabControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有自由和时间来为公司开发台式机,并且由于我多年来一直使用Winforms,所以我决定尝试一下WPF.

I have freedom and time to develop an desktop for my company and since i have been using Winforms for years, i decided to give WPF a try.

我只是在做基本的设计器工作,但是给我的一件事是我看不到在tabcontrol中添加按钮或任何其他控件.

I'm just doing basic designer stuff, but one of the things that is getting to me is that i can't see add a button or any other control to a tabcontrol.

 

就像Winforms一样,我放下tabcontrol,添加一个tabpage,然后将任何控件拖放到tabpage内.但是使用WPF设计器时,我放在选项卡页上的控件似乎并没有将其视为容器.表示我无法更改标签,但该按钮仍会出现在所有标签上.

Like in Winforms, i drop the tabcontrol, add a tabpage, then just drag and drop any control inside the tabpage. But with the WPF designer, it seems like the controls i drop on a tabpage do not see it as a container. Meaning i cant change tabs but the button still appears on all tabs.

 

我在做什么错?在WPF中控件容器的概念不一样吗?

What am i doing wrong? is the concept of a container for a control not the same in WPF?

谢谢!

 

推荐答案

有人吗?

 


这篇关于将控件添加到TabControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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