Skip to content

Commit

Permalink
Fixes #206 by respecting HorizontalContentAlignment in RibbonGroupBox
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Dec 3, 2015
1 parent 0c53541 commit 1205efd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions Fluent/Themes/Office2010/Controls/RibbonGroupBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
Value="Auto" />
<Setter Property="Height"
Value="85" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="Foreground"
Value="{DynamicResource DefaultFontBrush}" />
<Setter Property="Background"
Expand Down Expand Up @@ -285,7 +287,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down Expand Up @@ -500,7 +502,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down
6 changes: 4 additions & 2 deletions Fluent/Themes/Office2013/Controls/RibbonGroupBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
Value="Auto" />
<Setter Property="Height"
Value="85" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="Foreground"
Value="{DynamicResource DefaultFontBrush}" />
<Setter Property="Background"
Expand Down Expand Up @@ -285,7 +287,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down Expand Up @@ -482,7 +484,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down
6 changes: 4 additions & 2 deletions Fluent/Themes/Windows8/Controls/RibbonGroupBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
Value="Auto" />
<Setter Property="Height"
Value="85" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="Foreground"
Value="{DynamicResource DefaultFontBrush}" />
<Setter Property="Background"
Expand Down Expand Up @@ -283,7 +285,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down Expand Up @@ -467,7 +469,7 @@
IsEnabled="{Binding IsLauncherEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
</Grid>
<WrapPanel x:Name="PART_UpPanel"
HorizontalAlignment="Left"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
Expand Down

0 comments on commit 1205efd

Please sign in to comment.