Skip to content

Commit

Permalink
Fixed GridLength for RightToLeft ContentDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
timunie authored and punker76 committed Jul 11, 2019
1 parent 6bd1748 commit ac01ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Styles/Controls.CheckBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<Setter Property="Padding" Value="0 0 6 0" />
<Setter TargetName="LeftCol" Property="Width" Value="*" />
<Setter TargetName="PART_CHECKBOX" Property="Grid.Column" Value="1" />
<Setter TargetName="RightCol" Property="Width" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=CheckBox}, Path=(Controls:CheckBoxHelper.CheckBoxSize)}" />
<Setter TargetName="RightCol" Property="Width" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=CheckBox}, Path=(Controls:CheckBoxHelper.CheckBoxSize), Converter={StaticResource DoubleToGridLengthConverter}}" />
<Setter TargetName="contentPresenter" Property="Grid.Column" Value="0" />
</Trigger>
</ControlTemplate.Triggers>
Expand Down

0 comments on commit ac01ab5

Please sign in to comment.