作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我只是在写我自己的个人风格。
一切正常,样式中没有错误。
我有以下代码
<Color x:Key="DialogButtonBorderBrushColor" A="255" R="177" G="177" B="177" />
<SolidColorBrush x:Key="BorderBrush" Color="{StaticResource DialogButtonBorderBrushColor}" />
<Style x:Key="DialogButtonStyle" TargetType="Button">
<Setter Property="MinWidth" Value="80" />
<Setter Property="MinHeight" Value="30" />
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Background" Value="{StaticResource DialogButtonBackgroundColor1}"/>
</Style>
#FFFAFAFA
is not a valid value for the System.Windows.Controls.Panel.Background property on setter.
最佳答案
<Setter Property="Background" Value="{StaticResource DialogButtonBackgroundColor1}"/>
Background
属性(property)期待Brush
值(value)。从资源名称来看,DialogButtonBackgroundColor1
是 Color
.您应该使用类似于 BorderBrush
的 Brush 资源
关于wpf - #FFFAFAFA 不是 system.windows.controls.panel.background 的有效值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51856419/
我可以为属性 contenteditable 选择什么值。 最佳答案 它可以包含: true 错误 继承 引用: The contentEditable DOM attribute, on getti
我在签署 Ionic android apk 时遇到此错误,我在 Kubuntu 17.04 上,使用 Ionic 3,安装了 java 8 我得到的错误: Enter Passphrase for
我是一名优秀的程序员,十分优秀!