how would i add multiple buttons to a window in c#? here’s what i need to do… i’m getting multiple user values from a dictionary (within reason, only @ 5-6 values). for each value, i need to create a button. now, how do i name the button, not the text within the button? how do i define the “click” method for each button (they will all be different)? and how do i erase the button if i don’t want it anymore?
Share
Consider you have a
StackPanelnamed spTo remove button you could do
Hope this help.