本文介绍了问题触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! < 样式 > < Style.Triggers > < 触发器 Property =" IsMouseOver" 值 =" True"> < Setter Property ="背景" 值 =" Red">< / Setter > < / 触发器 > < / Style.Triggers > < / 样式 > I 想要更改按钮的背景颜色,我使用background属性导致错误 错误 属性'背景'不是类型FrameworkElement 解决方案 <Style><Style.Triggers><Trigger Property="IsMouseOver" Value="True"><Setter Property="Background"Value="Red"></Setter></Trigger></Style.Triggers></Style>I want to change the background color of the button, I use the background attribute the errors they causeErrorProperty 'Background' was not found in type FrameworkElement 解决方案 这篇关于问题触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-26 10:45