Skip to content

SplitButton CornerRadius #2871

@amkuchta

Description

@amkuchta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions