Skip to content

Commit

Permalink
Remove margin changes in markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Guo committed Jan 24, 2019
1 parent 2e0fdd7 commit 3e463a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/RatingControl/RatingControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<StackPanel Orientation="Horizontal" Grid.Row="0" Margin="-20,-20,-20,-20">
<StackPanel x:Name="RatingBackgroundStackPanel" Orientation="Horizontal" Background="Transparent" Margin="20,20,0,20"/>
<TextBlock x:Name="Caption" Height="32" Margin="4,22,20,0" TextLineBounds="TrimToBaseline" Style="{ThemeResource CaptionTextBlockStyle}" VerticalAlignment="Center" AutomationProperties.AccessibilityView="Raw" AutomationProperties.Name="RatingCaption" IsHitTestVisible="False" Text="{TemplateBinding Caption}"/>
<TextBlock x:Name="Caption" Height="32" Margin="4,9,20,0" TextLineBounds="TrimToBaseline" Style="{ThemeResource CaptionTextBlockStyle}" VerticalAlignment="Center" AutomationProperties.AccessibilityView="Raw" AutomationProperties.Name="RatingCaption" IsHitTestVisible="False" Text="{TemplateBinding Caption}"/>
<!-- 4 = 8 item spacing +4 of magic redline spacing -8 to compensate for scale of the last RatingItem -->
<!-- NB: The redlines say 8px, but it's really 12 px because:
Designer note: The value between the last glyph and first text character is 12px.
Expand Down

0 comments on commit 3e463a5

Please sign in to comment.