你动态添加一个button,名为button1,则可以这样写 button1.Style=(Style)Application.Current.Resources[“样式名"] 其中样式名就是你自己给的那段代码里面的 btnStyle