Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All, I have wpf project which display info of buttons on canvas by position as following:
my canvas:
--------------------------------------
|-----btnA----------btnC-------btnD |
|--btnB-----------btnF---------------|
|--------btnE-----------btnG---------|
|---------------------------------------|
|btnH----------btnI------------------|
|---------------------------btnJ-----|
--------------------------------------

I want to save name info of buttons on canvas to list same as:
btnA, btnC, btnD, btnB, btnF, btnE, btnG, btnH, btnI, btnJ.

How to get button on canvas and sort them to have list button name same as above?

Please help me.

Thanks in advance!
Posted
Updated 11-Jul-15 15:55pm
v2
Comments
Afzaal Ahmad Zeeshan 11-Jul-15 22:22pm    
I would suggest that you use ListView and use GridView to render these controls. In this, you will be able to control how controls are rendered.

1 solution

You can use a WrapPanel for that purpose.

 
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