|
23 | 23 | <ListBox Classes="repo_left_content_list"
|
24 | 24 | ItemsSource="{Binding Rows}"
|
25 | 25 | SelectionMode="Single"
|
26 |
| - SelectionChanged="OnRowSelectionChanged"> |
| 26 | + SelectionChanged="OnSelectionChanged"> |
| 27 | + |
| 28 | + <ListBox.DataTemplates> |
| 29 | + <DataTemplate DataType="vm:TagTreeNodeToolTip"> |
| 30 | + <StackPanel Orientation="Vertical" Spacing="6"> |
| 31 | + <StackPanel Orientation="Horizontal"> |
| 32 | + <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/> |
| 33 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/> |
| 34 | + <Border Background="Green" Margin="4,0,0,0" CornerRadius="4" IsVisible="{Binding IsAnnotated}"> |
| 35 | + <TextBlock Text="{DynamicResource Text.CreateTag.Type.Annotated}" Classes="primary" Margin="4,0" Foreground="White"/> |
| 36 | + </Border> |
| 37 | + </StackPanel> |
| 38 | + |
| 39 | + <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
| 40 | + </StackPanel> |
| 41 | + </DataTemplate> |
| 42 | + </ListBox.DataTemplates> |
| 43 | + |
27 | 44 | <ListBox.ItemTemplate>
|
28 | 45 | <DataTemplate DataType="vm:TagTreeNode">
|
29 | 46 | <Border Height="24"
|
30 | 47 | Background="Transparent"
|
31 |
| - PointerPressed="OnRowPointerPressed" |
32 |
| - DoubleTapped="OnDoubleTappedNode" |
33 |
| - ContextRequested="OnRowContextRequested" |
| 48 | + PointerPressed="OnItemPointerPressed" |
| 49 | + DoubleTapped="OnItemDoubleTapped" |
| 50 | + ContextRequested="OnItemContextRequested" |
34 | 51 | ToolTip.Tip="{Binding ToolTip}"
|
35 |
| - ToolTip.Placement="Right"> |
36 |
| - <Border.DataTemplates> |
37 |
| - <DataTemplate DataType="vm:TagTreeNodeToolTip"> |
38 |
| - <StackPanel Orientation="Vertical" Spacing="6"> |
39 |
| - <StackPanel Orientation="Horizontal"> |
40 |
| - <Path Width="10" Height="10" Data="{StaticResource Icons.Tag}"/> |
41 |
| - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Name}"/> |
42 |
| - <Border Background="Green" Margin="4,0,0,0" CornerRadius="4" IsVisible="{Binding IsAnnotated}"> |
43 |
| - <TextBlock Text="{DynamicResource Text.CreateTag.Type.Annotated}" Classes="primary" Margin="4,0" Foreground="White"/> |
44 |
| - </Border> |
45 |
| - </StackPanel> |
46 |
| - |
47 |
| - <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
48 |
| - </StackPanel> |
49 |
| - </DataTemplate> |
50 |
| - </Border.DataTemplates> |
51 |
| - |
| 52 | + ToolTip.Placement="Right"> |
52 | 53 | <Grid ColumnDefinitions="16,Auto,*,Auto"
|
53 | 54 | Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}"
|
54 | 55 | VerticalAlignment="Center">
|
|
59 | 60 | IsChecked="{Binding IsExpanded, Mode=OneWay}"
|
60 | 61 | IsVisible="{Binding IsFolder}"/>
|
61 | 62 |
|
62 |
| - <v:TagTreeNodeIcon Grid.Column="1" |
63 |
| - Node="{Binding .}" |
64 |
| - IsExpanded="{Binding IsExpanded, Mode=OneWay}"/> |
| 63 | + <v:TagTreeNodeIcon Grid.Column="1" IsExpanded="{Binding IsExpanded, Mode=OneWay}"/> |
65 | 64 |
|
66 | 65 | <TextBlock Grid.Column="2"
|
67 | 66 | Classes="primary"
|
|
89 | 88 | Margin="8,0,0,0"
|
90 | 89 | ItemsSource="{Binding Tags}"
|
91 | 90 | SelectionMode="Single"
|
92 |
| - SelectionChanged="OnRowSelectionChanged"> |
| 91 | + SelectionChanged="OnSelectionChanged"> |
93 | 92 | <ListBox.ItemTemplate>
|
94 | 93 | <DataTemplate DataType="m:Tag">
|
95 | 94 | <Border Height="24"
|
96 | 95 | Background="Transparent"
|
97 |
| - PointerPressed="OnRowPointerPressed" |
98 |
| - ContextRequested="OnRowContextRequested" |
| 96 | + PointerPressed="OnItemPointerPressed" |
| 97 | + ContextRequested="OnItemContextRequested" |
99 | 98 | ToolTip.Placement="Right">
|
100 | 99 | <ToolTip.Tip>
|
101 | 100 | <StackPanel Orientation="Vertical" Spacing="6">
|
|
0 commit comments