I have 开发者_开发百科created a style for button control in App.xaml("RoundButton"). I want to create a button in C# code and set the style of the button to the one created in App.xaml file. Is it possible to do this?
Button btn = new Button();
btn.Style= (Style)App.Current.Resources["RoundButton"];
精彩评论