Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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
Posted

AFAIK, you cannot place a control inside a path.

The other way round, however, is very possible.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900