|
29 | 29 | <Border Height="24" Background="Transparent" PointerPressed="OnRowPointerPressed" DoubleTapped="OnDoubleTappedNode" ContextRequested="OnRowContextRequested" ToolTip.Tip="{Binding ToolTip}">
|
30 | 30 | <Border.DataTemplates>
|
31 | 31 | <DataTemplate DataType="vm:TagTreeNodeToolTip">
|
32 |
| - <StackPanel Orientation="Vertical" MinWidth="200"> |
33 |
| - <StackPanel Orientation="Horizontal" Margin="0,0,0,6"> |
| 32 | + <StackPanel Orientation="Vertical" Spacing="6"> |
| 33 | + <StackPanel Orientation="Horizontal"> |
34 | 34 | <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/>
|
35 | 35 | <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/>
|
36 | 36 | <Border Background="Green" Margin="4,0,0,0" CornerRadius="4" IsVisible="{Binding IsAnnotated}">
|
37 |
| - <TextBlock Text="annotated" Classes="primary" Margin="4,0" Foreground="#FFDDDDDD"/> |
| 37 | + <TextBlock Text="{DynamicResource Text.CreateTag.Type.Annotated}" Classes="primary" Margin="4,0" Foreground="#FFDDDDDD"/> |
38 | 38 | </Border>
|
39 | 39 | </StackPanel>
|
40 | 40 |
|
41 |
| - <TextBlock Text="{Binding Message}"/> |
| 41 | + <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static c:StringConverters.IsNotNullOrWhitespace}}"/> |
42 | 42 | </StackPanel>
|
43 | 43 | </DataTemplate>
|
44 | 44 | </Border.DataTemplates>
|
|
86 | 86 | <DataTemplate DataType="m:Tag">
|
87 | 87 | <Border Height="24" Background="Transparent" PointerPressed="OnRowPointerPressed" ContextRequested="OnRowContextRequested">
|
88 | 88 | <ToolTip.Tip>
|
89 |
| - <StackPanel Orientation="Vertical" MinWidth="200"> |
90 |
| - <StackPanel Orientation="Horizontal" Margin="0,0,0,6"> |
| 89 | + <StackPanel Orientation="Vertical" Spacing="6"> |
| 90 | + <StackPanel Orientation="Horizontal"> |
91 | 91 | <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/>
|
92 | 92 | <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/>
|
93 | 93 | <Border Background="Green" Margin="4,0,0,0" CornerRadius="4" IsVisible="{Binding IsAnnotated}">
|
94 |
| - <TextBlock Text="annotated" Classes="primary" Margin="4,0" Foreground="#FFDDDDDD"/> |
| 94 | + <TextBlock Text="{DynamicResource Text.CreateTag.Type.Annotated}" Classes="primary" Margin="4,0" Foreground="#FFDDDDDD"/> |
95 | 95 | </Border>
|
96 | 96 | </StackPanel>
|
97 | 97 |
|
98 |
| - <TextBlock Text="{Binding Message}"/> |
| 98 | + <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static c:StringConverters.IsNotNullOrWhitespace}}"/> |
99 | 99 | </StackPanel>
|
100 | 100 | </ToolTip.Tip>
|
101 | 101 |
|
|
0 commit comments