Just wondering if there is a way to arrange controls in a circular shape like a round table. Control can be an image or textbox..
For example: if i have an ellipse shape, all am looking is to fill controls along the perimeter border of the ellipse...
Please let me know if there is a standard way to do this using xaml and c#.
Here is what i have done so far. I created an ellipse and have the X, Y position values using the Point Type. Based on the points i could create a textbox.. but couldn;t loop until the i reach 0,0 again.
0,0 is the bottom left position (x,y)
for (i=0;i<actual width/perimeter of ellipse;i++)
x=0; y= x+10;
New Point = x,y, create a control and add it to the panel
Similarly need to add controls in the Y direction...
2) There isn't a "standard way" of doing this. Use geometry and you can figure out where you would want to place controls on the x-y coordinate of the screen.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.