Up vote 0 down vote favorite share g+ share fb share tw.
I found the following template for a nice glass button in the internet. As you can see it has a property setting for the button background, but if I change this in Blend into any other value, the background of the button won`t change.. I have to change the value directly in the Setter tag which will affect all buttons in the form using this template... How can I change the code to give different background to different buttons using this template? Wpf xaml link|improve this question asked Mar 2 at 22:22lebhero7817 67% accept rate.
You can use binding: This way, you can set a background for each button individually, and the background used by the setter will be bound to the button's Background property.
..Iam having an exception:{"Expression type is not a valid Style value. "} How can I fix this? – lebhero Mar 2 at 22:54 @lebhero See my updated answer – Lester Mar 2 at 23:08 Thank you ...i think there is something I don't understand in the template..the background will set the background of the button when pressed, but what if I want to change the background of the button before pressing?
If I chage the value of background directly in the template, it will change the button color before pressing and this is exactly what I need ... how would I do this?(Change facecolor of the button)? Thankss – lebhero Mar 2 at 23:39.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.