如何避免Grid单元中的UserControls重叠 [英] How to avoid overlapping of UserControls in cell of Grid

查看:94
本文介绍了如何避免Grid单元中的UserControls重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在网格的单元格(行= 0;列= 0;)中重叠UserControls时遇到问题.例如,在Grid中,在row = 0和col = 0的位置,我显示了Circle(这是UserControl).现在,我想在主Circle中显示2个较小的圆圈(它们也是UserControls),而不会出现重叠.能否给我发送示例代码.

谢谢与问候
Subba

Hi
I am facing problem in overlapping of UserControls in a cell ( row = 0; col = 0;) of Grid. For example In Grid, at row = 0 and col = 0, I displayed Circle (this is UserControl). Now I would like to display 2 smaller circles ( these are also UserControls) in main Circle without over lapping. Could you please send me the sample code for this.

Thanks&Regards
Subba

推荐答案

我不太确定避免重叠"到底是什么意思.首先,您要将两个较小的圆圈放入一个大圆圈中,但随后它们不应重叠.我不得不说这是一个非常矛盾的说法.
也许您想说的是,您想将两个小圆圈控件放置到较大的圆圈控件中.当然,这意味着大圆圈控件必须表现得像一个容器.

请阐明您的确切要求.
谢谢!
I''m not quite sure what exactly you mean by "avoid overlapping". First you want to place two smaller circles into a big circle, but then they should not overlap. This is a very contradictory statement I have to say.
Maybe you wanted to say instead that you would like to place your two small circle controls INTO the bigger circle control. This implies of course that the big circle control has to behave like a container.

Please clarify your exact requirements.
Thanks!


这篇关于如何避免Grid单元中的UserControls重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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