|
|
|
@ -6,7 +6,7 @@ |
|
|
|
<TextBlock Classes="h1">ToolTip</TextBlock> |
|
|
|
<TextBlock Classes="h2">A control which pops up a hint when a control is hovered</TextBlock> |
|
|
|
|
|
|
|
<Grid RowDefinitions="Auto,Auto" |
|
|
|
<Grid RowDefinitions="Auto,Auto,Auto" |
|
|
|
ColumnDefinitions="Auto,Auto" |
|
|
|
Margin="0,16,0,0" |
|
|
|
HorizontalAlignment="Center"> |
|
|
|
@ -38,6 +38,31 @@ |
|
|
|
</ToolTip.Tip> |
|
|
|
<TextBlock>ToolTip bottom placement</TextBlock> |
|
|
|
</Border> |
|
|
|
<Border Grid.Row="2" |
|
|
|
Grid.ColumnSpan="2" |
|
|
|
Background="{DynamicResource SystemAccentColor}" |
|
|
|
Margin="5" |
|
|
|
Padding="50" |
|
|
|
ToolTip.Tip="Hello" |
|
|
|
ToolTip.Placement="Top"> |
|
|
|
<Border.Styles> |
|
|
|
<Style Selector="Border"> |
|
|
|
<Style.Animations> |
|
|
|
<Animation Duration="0:0:2" IterationCount="Infinite"> |
|
|
|
<KeyFrame KeyTime="0:0:0"> |
|
|
|
<Setter Property="ToolTip.HorizontalOffset" Value="0" /> |
|
|
|
<Setter Property="ToolTip.VerticalOffset" Value="-50" /> |
|
|
|
</KeyFrame> |
|
|
|
<KeyFrame KeyTime="0:0:2" > |
|
|
|
<Setter Property="ToolTip.HorizontalOffset" Value="100" /> |
|
|
|
<Setter Property="ToolTip.VerticalOffset" Value="50" /> |
|
|
|
</KeyFrame> |
|
|
|
</Animation> |
|
|
|
</Style.Animations> |
|
|
|
</Style> |
|
|
|
</Border.Styles> |
|
|
|
<TextBlock>Moving offset</TextBlock> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
</UserControl> |
|
|
|
|