Panuon.Documents icon indicating copy to clipboard operation
Panuon.Documents copied to clipboard

Button的Outline有点问题

Open 869570967 opened this issue 4 years ago • 1 comments

<Style TargetType="Button"
       BasedOn="{StaticResource {x:Type Button}}">
    <Setter Property="pu:ButtonHelper.ButtonStyle"
            Value="Outline" />
    <Setter Property="pu:ButtonHelper.CornerRadius"
            Value="3" />
    <Setter Property="Height"
            Value="30" />
    <Setter Property="Padding"
            Value="10,2" />
    <Setter Property="Cursor"
            Value="Hand" />
    <Setter Property="FontSize"
            Value="12" />
    <Setter Property="BorderBrush"
            Value="{StaticResource Theme}" />
    <Setter Property="Foreground"
            Value="{StaticResource Theme}" />
    <Setter Property="pu:ButtonHelper.HoverBrush"
            Value="{StaticResource Theme}" />
</Style>

869570967 avatar Jun 16 '20 15:06 869570967

如上,我在资源字典中重新定义Outline的样式,发现边框颜色和字体颜色以及移上去触发改变的背景色都没有继承到主题颜色,然而Standard样式确是可以的

869570967 avatar Jun 16 '20 15:06 869570967