你这个控件应该有一个Name属性,如Name=mybtn;在后台需要更改边框和背景的事件中,mybtn.Background=newSoildBrush(Colors.White);//改成白色背景mybtn.BorderBrush=newSoildBrush(Colors.Black);//黑色边框...等等其他的属性,。