-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Milestone
Description
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
Labels
No labels