六边形内的UI元素 [英] UI element inside hexagon
本文介绍了六边形内的UI元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨...
我想将UI元素放置在六边形内.我尝试了不同的方法来做到这一点.由于六边形是一种路径几何,因此我无法做到.请帮我解决这个问题,因为这是我的项目,而且我没有足够的时间.
在此先感谢
干杯
Hi...
I want to place an UI element inside a hexagon. I have tried different ways to do so. Since, hexagon is a path geometry, I am unable to do. Please help me out to sort this as this is my project an d I don''t have enough time.
Thanks in Advance
Cheers
推荐答案
AFAIK,您不能将控件放置在路径内.
但是,另一种方法是很有可能的.
AFAIK, you cannot place a control inside a path.
The other way round, however, is very possible.
巴拉吉,
您不能直接将UIElement放置在Hexagon中.最好的方法是用Grid控件包装Hexagon,然后将UIElement放置在Hexagon顶部的Grid中.
让我知道,如果您需要更多帮助.
Hi Balaji,
You can''t directly put an UIElement inside the Hexagon. Best way to do is wrap the Hexagon with a Grid control and then place the UIElement inside the Grid on top of the Hexagon.
Let me know, if you need more help on it.
这篇关于六边形内的UI元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文