【发布时间】:2013-06-25 04:30:43
【问题描述】:
在 Expression Blend 4 中,我想在不同状态下更改自定义按钮的 Foreground。我只能更改Background 和BorderBrush。
就像这样:
如果状态为“Normal”,文本“Button”的颜色为Black,而状态为“Pressed”,文本“Button”的颜色为White。
在Brushes Panel 下Properties Panel 上有3 个属性,但没有Foreground 属性:
谁能帮帮我?我很困惑。
编辑
我发现ContentControl 有一个Foreground 属性,但ContentPresenter 没有。我应该使用ContentControl而不是ContentPresenter吗?
【问题讨论】:
标签: wpf templates styles expression-blend