Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button的Outline有点问题 #5

Open
869570967 opened this issue Jun 16, 2020 · 1 comment
Open

Button的Outline有点问题 #5

869570967 opened this issue Jun 16, 2020 · 1 comment

Comments

@869570967
Copy link

<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"> </Style>
<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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant