|
26 | 26 | SelectionChanged="OnRowSelectionChanged">
|
27 | 27 | <ListBox.ItemTemplate>
|
28 | 28 | <DataTemplate DataType="vm:TagTreeNode">
|
29 |
| - <Border Height="24" Background="Transparent" PointerPressed="OnRowPointerPressed" DoubleTapped="OnDoubleTappedNode" ContextRequested="OnRowContextRequested"> |
| 29 | + <Border Height="24" Background="Transparent" PointerPressed="OnRowPointerPressed" DoubleTapped="OnDoubleTappedNode" ContextRequested="OnRowContextRequested" ToolTip.Tip="{Binding ToolTip}"> |
| 30 | + <Border.DataTemplates> |
| 31 | + <DataTemplate DataType="vm:TagTreeNodeToolTip"> |
| 32 | + <StackPanel Orientation="Vertical" MinWidth="200"> |
| 33 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,6"> |
| 34 | + <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/> |
| 35 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/> |
| 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"/> |
| 38 | + </Border> |
| 39 | + </StackPanel> |
| 40 | + |
| 41 | + <TextBlock Text="{Binding Message}"/> |
| 42 | + </StackPanel> |
| 43 | + </DataTemplate> |
| 44 | + </Border.DataTemplates> |
| 45 | + |
30 | 46 | <Grid ColumnDefinitions="16,Auto,*,Auto"
|
31 | 47 | Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}"
|
32 |
| - VerticalAlignment="Center" |
33 |
| - ToolTip.Tip="{Binding ToolTip}"> |
| 48 | + VerticalAlignment="Center"> |
34 | 49 | <v:TagTreeNodeToggleButton Grid.Column="0"
|
35 | 50 | Classes="tree_expander"
|
36 | 51 | Focusable="False"
|
|
42 | 57 | Node="{Binding .}"
|
43 | 58 | IsExpanded="{Binding IsExpanded, Mode=OneWay}"/>
|
44 | 59 |
|
45 |
| - <Border Grid.Column="2" Background="Transparent"> |
46 |
| - <TextBlock Classes="primary" |
47 |
| - Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}}" |
48 |
| - Margin="8,0,0,0"/> |
49 |
| - </Border> |
| 60 | + <TextBlock Grid.Column="2" |
| 61 | + Classes="primary" |
| 62 | + Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}}" |
| 63 | + Margin="8,0,0,0"/> |
50 | 64 |
|
51 | 65 | <ContentControl Grid.Column="3" Content="{Binding Tag}">
|
52 | 66 | <ContentControl.DataTemplates>
|
|
71 | 85 | <ListBox.ItemTemplate>
|
72 | 86 | <DataTemplate DataType="m:Tag">
|
73 | 87 | <Border Height="24" Background="Transparent" PointerPressed="OnRowPointerPressed" ContextRequested="OnRowContextRequested">
|
74 |
| - <Grid ColumnDefinitions="Auto,*,Auto" VerticalAlignment="Center" ToolTip.Tip="{Binding Message}"> |
| 88 | + <ToolTip.Tip> |
| 89 | + <StackPanel Orientation="Vertical" MinWidth="200"> |
| 90 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,6"> |
| 91 | + <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/> |
| 92 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/> |
| 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"/> |
| 95 | + </Border> |
| 96 | + </StackPanel> |
| 97 | + |
| 98 | + <TextBlock Text="{Binding Message}"/> |
| 99 | + </StackPanel> |
| 100 | + </ToolTip.Tip> |
| 101 | + |
| 102 | + <Grid ColumnDefinitions="Auto,*,Auto" VerticalAlignment="Center"> |
75 | 103 | <Path Grid.Column="0"
|
76 | 104 | Margin="8,0,0,0"
|
77 | 105 | Width="12" Height="12"
|
78 | 106 | Data="{StaticResource Icons.Tag}"/>
|
79 | 107 |
|
80 |
| - <Border Grid.Column="1" Background="Transparent"> |
81 |
| - <TextBlock Classes="primary" |
82 |
| - Text="{Binding Name}" |
83 |
| - Margin="8,0,0,0" |
84 |
| - TextTrimming="CharacterEllipsis"/> |
85 |
| - </Border> |
| 108 | + <TextBlock Grid.Column="1" |
| 109 | + Classes="primary" |
| 110 | + Text="{Binding Name}" |
| 111 | + Margin="8,0,0,0" |
| 112 | + TextTrimming="CharacterEllipsis"/> |
86 | 113 |
|
87 | 114 | <v:FilterModeSwitchButton Grid.Column="2" Margin="0,0,12,0" Mode="{Binding FilterMode}"/>
|
88 | 115 | </Grid>
|
|
0 commit comments