开发者

WP7 How to add the style in C#

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"];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜