mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<TextBox>: fix wrong position of error tooltip anchor
This commit is contained in:
parent
9cf3c37f1b
commit
47c70669cd
1 changed files with 8 additions and 5 deletions
|
@ -8,6 +8,11 @@
|
||||||
<Border.RenderTransform>
|
<Border.RenderTransform>
|
||||||
<TranslateTransform x:Name="xform" X="-25" />
|
<TranslateTransform x:Name="xform" X="-25" />
|
||||||
</Border.RenderTransform>
|
</Border.RenderTransform>
|
||||||
|
|
||||||
|
<Border.Effect>
|
||||||
|
<DropShadowEffect BlurRadius="11" ShadowDepth="6" Opacity="0.4" />
|
||||||
|
</Border.Effect>
|
||||||
|
|
||||||
<VisualStateManager.VisualStateGroups>
|
<VisualStateManager.VisualStateGroups>
|
||||||
<VisualStateGroup x:Name="OpenStates">
|
<VisualStateGroup x:Name="OpenStates">
|
||||||
<VisualStateGroup.Transitions>
|
<VisualStateGroup.Transitions>
|
||||||
|
@ -36,9 +41,7 @@
|
||||||
</VisualState>
|
</VisualState>
|
||||||
</VisualStateGroup>
|
</VisualStateGroup>
|
||||||
</VisualStateManager.VisualStateGroups>
|
</VisualStateManager.VisualStateGroups>
|
||||||
<FrameworkElement.Effect>
|
|
||||||
<DropShadowEffect BlurRadius="11" ShadowDepth="6" Opacity="0.4" />
|
|
||||||
</FrameworkElement.Effect>
|
|
||||||
<Border Background="#FFDC000C" BorderThickness="1" BorderBrush="#FFBC000C">
|
<Border Background="#FFDC000C" BorderThickness="1" BorderBrush="#FFBC000C">
|
||||||
<TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding [0].ErrorContent}" UseLayoutRounding="false" />
|
<TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding [0].ErrorContent}" UseLayoutRounding="false" />
|
||||||
</Border>
|
</Border>
|
||||||
|
@ -56,8 +59,8 @@
|
||||||
Template="{StaticResource Template.Validation.Tooltip}"
|
Template="{StaticResource Template.Validation.Tooltip}"
|
||||||
Style="{x:Null}"/>
|
Style="{x:Null}"/>
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
<Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Width="12" Margin="1,-4,-4,0" VerticalAlignment="Top">
|
<Grid Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top">
|
||||||
<Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="1,3,0,0" />
|
<Path Width="10" Height="10" Data="M 1,0 L8,0 L8,7 z" Fill="#FFDC000C"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</AdornedElementPlaceholder>
|
</AdornedElementPlaceholder>
|
||||||
|
|
Loading…
Reference in a new issue