can i fetch the xaml button style on my dynamic button?
i have a problem i have some dynamic button and i want to put some style on it like my other button(Xaml button).how can i fetch the xaml code using c#? but it gives N ERROR
buttonlanguage.Style = (Style)Ap开发者_StackOverflowplication.Current.FindResource("Glassbutton");
Put your style in the resources section in xaml and call from code-behind like this:
myDynamicButton.Style = (Style)myWindow.FindResource("myButtonStyle");
精彩评论