I suppose I am a little bit stuck right now trying to assign a color to each button that I am creating. When I use the drag method to create my button, I am then using the ColorDialog to choose the color, but then when I use the for loop above, all of the created buttons in my xml file color attribute get overwritten by my last chosen color. So I am curious if I am using the correct method for saving my buttons to xml.