Skip to content

Commit

Permalink
Merge pull request #341 from chrfin/develop
Browse files Browse the repository at this point in the history
Fix text going under custom window commands
  • Loading branch information
batzen authored Sep 17, 2016
2 parents bb85c00 + 35c95ae commit 63a13f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Fluent.Ribbon/Themes/RibbonWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
<Grid>
<AdornerDecorator x:Name="Adorner">
<Grid Background="{TemplateBinding Background}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<DockPanel x:Name="PART_TitleBar"
Grid.Column="0"
Height="{Binding Path=(Fluent:RibbonProperties.TitleBarHeight), RelativeSource={RelativeSource Self}}"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Expand All @@ -29,13 +35,13 @@

<ContentPresenter Content="{Binding WindowCommands, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Fluent:RibbonWindow}}}"
x:Name="PART_WindowCommands"
Grid.Column="1"
Panel.ZIndex="1"
Grid.RowSpan="2"
VerticalAlignment="Top"
HorizontalAlignment="Right"
Height="{Binding Path=(Fluent:RibbonProperties.TitleBarHeight), RelativeSource={RelativeSource Self}}" />

<ContentPresenter x:Name="PART_ContentPresenter" />
<ContentPresenter x:Name="PART_ContentPresenter" Grid.ColumnSpan="2" />
</Grid>
</AdornerDecorator>

Expand Down

0 comments on commit 63a13f6

Please sign in to comment.