Skip to content

Commit

Permalink
PipsPager: update navigation buttons tooltip placement (#4924)
Browse files Browse the repository at this point in the history
  • Loading branch information
beervoley authored Apr 29, 2021
1 parent 49c719a commit f426615
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/PipsPager/PipsPager.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@
<VisualState x:Name="HorizontalOrientationView">
<VisualState.Setters>
<Setter Target="RootPanel.Orientation" Value="Horizontal"/>
<Setter Target="PreviousPageButton.(ToolTipService.Placement)" Value="Left"/>
<Setter Target="PreviousPageButton.RenderTransformOrigin" Value="0.5, 0.5"/>
<Setter Target="PreviousPageButton.RenderTransform">
<Setter.Value>
<RotateTransform Angle="-90"/>
</Setter.Value>
</Setter>
<Setter Target="NextPageButton.(ToolTipService.Placement)" Value="Right"/>
<Setter Target="NextPageButton.RenderTransformOrigin" Value="0.5, 0.5"/>
<Setter Target="NextPageButton.RenderTransform">
<Setter.Value>
Expand All @@ -88,6 +90,7 @@

<Button x:Name="PreviousPageButton"
ToolTipService.ToolTip="{Binding ElementName=PreviousPageButton, Path=(AutomationProperties.Name)}"
ToolTipService.Placement="Top"
Style="{TemplateBinding PreviousButtonStyle}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
Expand Down Expand Up @@ -117,6 +120,7 @@

<Button x:Name="NextPageButton"
ToolTipService.ToolTip="{Binding ElementName=NextPageButton, Path=(AutomationProperties.Name)}"
ToolTipService.Placement="Bottom"
Style="{TemplateBinding NextButtonStyle}"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
Expand Down

0 comments on commit f426615

Please sign in to comment.