Skip to content

Commit

Permalink
Changing default VerticalContentAlignment
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Jun 26, 2018
1 parent f8944b9 commit 95bcb53
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
- Due to [#549](../../issues/549) `RibbonGroupBox.Header` is now of type object and `RibbonGroupBox` now inherits from `HeaderedItemsControl` instead of `ItemsControl`.
Please have a look at the [documentation](http://fluentribbon.github.io/documentation/controls/ribbon-group-box#customizingHeader) for details.
- Removed `CornerRadius` everywhere except in all controls related to `ApplicationMenu`.
- Default `Foreground` for `ComboBox` is now `Fluent.Ribbon.Brushes.LabelTextBrush`.
- Default `Foreground` for `ComboBox` changed from `Inherited` to `Fluent.Ribbon.Brushes.LabelTextBrush`.
- Default `VerticalContentAlignment` for `ComboBox`, `Spinner` and `TextBox` changed from `Top` to `Center`.
- Key tips can not be opened by pressing `Space` anymore.
- The following resources were added, renamed or removed ("---" indicates added when in column "Old" and removed when in column "Old"):

Expand Down
2 changes: 2 additions & 0 deletions Fluent.Ribbon/Themes/Controls/ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@
Value="{DynamicResource ControlStyleEmptyFocus}" />
<Setter Property="IsEditable"
Value="True" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="ScrollViewer.CanContentScroll"
Value="true" />
<Style.Triggers>
Expand Down
2 changes: 2 additions & 0 deletions Fluent.Ribbon/Themes/Controls/RibbonTextBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
BasedOn="{StaticResource {x:Type TextBoxBase}}">
<Setter Property="Template"
Value="{DynamicResource Fluent.Ribbon.ControlTemplates.TextBox}" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="FocusVisualStyle"
Value="{DynamicResource ControlStyleEmptyFocus}" />
<Setter Property="Foreground"
Expand Down
2 changes: 2 additions & 0 deletions Fluent.Ribbon/Themes/Controls/Spinner.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@
Value="{DynamicResource Fluent.Ribbon.Brushes.LabelTextBrush}" />
<Setter Property="Focusable"
Value="False" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="Template"
Value="{DynamicResource Fluent.Ribbon.ControlTemplates.Spinner}" />
</Style>
Expand Down

0 comments on commit 95bcb53

Please sign in to comment.