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

Comments

Projects
None yet
2 participants
@amkuchta
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 the Enhancement label Mar 4, 2017

@punker76 punker76 added this to the 1.5.0 milestone Mar 4, 2017

@punker76 punker76 closed this in b93cf45 Mar 4, 2017

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Mar 4, 2017

Member

This will be available in 1.5.0

Member

punker76 commented Mar 4, 2017

This will be available in 1.5.0

@amkuchta

This comment has been minimized.

Show comment
Hide comment
@amkuchta

amkuchta Mar 6, 2017

Contributor

@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.

Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment