Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WPF Silverlight , +
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 16-Apr-10 8:50am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

AFAIK, you cannot place a control inside a path.
 
The other way round, however, is very possible.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
0 Maciej Los 225
1 OriginalGriff 145
2 manoj kumar choubey 115
3 _Amy 115
4 Sergey Alexandrovich Kryukov 105
0 OriginalGriff 7,320
1 Sergey Alexandrovich Kryukov 6,043
2 Maciej Los 3,749
3 Peter Leow 3,408
4 DamithSL 2,555


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 9 Sep 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100