阅读背景:

来自Style DataTrigger的TemplateBinding在ControlTemplate中

来源:互联网 

In the following XAML I'm using a Rectangle with a Border as the Template for a ToggleButton. I want the BorderBrush to be a different colour to reflect the changing value of ToggleButton.IsChecked. Unfortunately my attempt here of using a TemplateBinding in the DataTrigger doesn't work. What do I need to do instead?In the following XAML I'm using a Rectangle wit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: