积极答复者
关于WPF下DatePicker样式被全局BUTTON样式冲突

问题
答案
-
你好,可以给DatePicker引用以下样式来解决这个问题。
<Style TargetType="{x:Type DatePicker}"> <Style.Resources> <Style TargetType="Button"/> </Style.Resources> </Style>
Min Zhu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Min ZhuModerator 2011年9月8日 2:14
全部回复
-
请参考 Default WPF Themes (六种系统默认样式)
-
你好,可以给DatePicker引用以下样式来解决这个问题。
<Style TargetType="{x:Type DatePicker}"> <Style.Resources> <Style TargetType="Button"/> </Style.Resources> </Style>
Min Zhu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Min ZhuModerator 2011年9月8日 2:14