Sergonizer
❔ Change trigger behavior from code behind(!)
Hello again. I am still making a chess game using wpf&wcf. And the problem is that entire board is generated in code, so I can't do anything xaml related on the radio buttons I am using. The style of radio button is set by Style = FindResource(typeof(ToggleButton)) as Style; and I want to prevent selecting the cell from changing the background color (because it makes it impossible to see if the king is in check for example). So there should be a way to do this, but I couldnt find anything except xaml editing.
8 replies