© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
52 replies
Dawnbomb

❔ How do i assign or change Z order of a button? (Dock buttons)

I'm trying to make a list of buttons appear, and dock them top down to a grid in C#. As with most things WPF, this seems annoyingly difficult. I googled for like 20 minutes and got no answers. I'm not even sure if i'm searching for the wright terms. How do i dock a generated button, and then have the next one also be docked, below the first one? I assume i probably use
MyButton.VerticalAlignment = VerticalAlignment.Top;
MyButton.VerticalAlignment = VerticalAlignment.Top;
but i don't know what the term is to refer to docking or Z index. Because its not Dock or ZIndex or Index or like 10 other things i tried.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How can I dock a form inside of a TabPage?
C#CC# / help
4y ago
✅ How do I order tasks?
C#CC# / help
2y ago
❔ Question How can I change the height of the titlebar buttons
C#CC# / help
4y ago
How do I change style of nested items?
C#CC# / help
2y ago
Next page