Reputation: 4747
My WPF application will be extracting usernames from a database and I want to display a button with each persons username on it on a WPF page.
I don't know the number of users before hand so I want to change the size and position of the buttons depending on the number to display.
For example:
How can I do this using XAML??
Upvotes: 3
Views: 115
Reputation: 873
WPF Uniform grid control is suitable for your requirement. It will come with row and columns. Grid will take care of automatic arrangement of elements.
Upvotes: 3