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

SplitButton CornerRadius #2871

Closed
amkuchta opened this issue Feb 27, 2017 · 2 comments
Closed

SplitButton CornerRadius #2871

amkuchta opened this issue Feb 27, 2017 · 2 comments
Milestone

Comments

@amkuchta
Copy link
Contributor

amkuchta commented Feb 27, 2017

What steps will reproduce this issue?

Creating a custom-styled SplitButton and applying CornerRadius does not have any effect:

<Style x:Key="SplitButtonStyle" TargetType="{x:Type Controls:SplitButton}">
  <Setter Property="Foreground" Value="{DynamicResource TextBrush}" />
  <Setter Property="Background" Value="{DynamicResource GrayBrush10}" />
  <Setter Property="BorderBrush" Value="{DynamicResource TextBoxBorderBrush}" />
  <Setter Property="BorderThickness" Value="1" />
  <Setter Property="Controls:ControlsHelper.ContentCharacterCasing" Value="Upper" />
  <Setter Property="Controls:ControlsHelper.CornerRadius" Value="3" />
  <Setter Property="FontFamily" Value="{DynamicResource DefaultFont}" />
  <Setter Property="FontSize" Value="{DynamicResource UpperCaseContentFontSize}" />
  <Setter Property="FontWeight" Value="Bold" />
  <Setter Property="MinHeight" Value="25" />
  <Setter Property="Padding" Value="2 3" />
</Style>

...

<Controls:SplitButton Style="{StaticResource SplitButtonStyle}" />

Expected outcome

CornerRadius should be set for all corners to a value of "3"

Repo

https://github.com/amkuchta/Vulnerator/tree/code_cleanup

Environment

  • MahApps.Metro v1.5.0.0
  • Windows OS 10
  • Visual Studio 2015
  • .NET Framework 4.5.2
@punker76 punker76 added this to the 1.5.0 milestone Mar 4, 2017
@punker76
Copy link
Member

punker76 commented Mar 4, 2017

This will be available in 1.5.0

@amkuchta
Copy link
Contributor Author

amkuchta commented Mar 6, 2017

@punker76 Thanks! Did this make the cut for 1.5.0_alpha006, or do I need to wait for 007? Just updated to 006, and it still isn't working, which is why I am asking.

punker76 added a commit to timunie/MahApps.Metro that referenced this issue Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants