Skip to content

Commit

Permalink
ListBox: Added rounded corners
Browse files Browse the repository at this point in the history
  • Loading branch information
darklinkpower committed Apr 1, 2022
1 parent ba019b6 commit fc5b058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/CustomControls/ExtendedListBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBox}">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}" CornerRadius="0">
Background="{TemplateBinding Background}" CornerRadius="{DynamicResource ControlCornerRadius}">
<ScrollViewer Focusable="False"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
Expand Down
2 changes: 1 addition & 1 deletion source/DefaultControls/ListBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBox}">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}" CornerRadius="0">
Background="{TemplateBinding Background}" CornerRadius="{DynamicResource ControlCornerRadius}">
<ScrollViewer Focusable="False"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
Expand Down

0 comments on commit fc5b058

Please sign in to comment.