|
37 | 37 | </Border>
|
38 | 38 | </StackPanel>
|
39 | 39 |
|
| 40 | + <Grid RowDefinitions="20,20" ColumnDefinitions="Auto,*" Margin="0,6" IsVisible="{Binding IsAnnotated}"> |
| 41 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 42 | + Classes="info_label" |
| 43 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 44 | + Text="{DynamicResource Text.Tag.Tagger}"/> |
| 45 | + <ContentControl Grid.Row="0" Grid.Column="1" Margin="8,0,0,0" Content="{Binding Creator}"> |
| 46 | + <ContentControl.DataTemplates> |
| 47 | + <DataTemplate DataType="m:User"> |
| 48 | + <StackPanel Orientation="Horizontal"> |
| 49 | + <v:Avatar Width="16" Height="16" User="{Binding}"/> |
| 50 | + <TextBlock Margin="8,0,0,0"> |
| 51 | + <Run Text="{Binding Name, Mode=OneWay}"/> |
| 52 | + <Run Text="{Binding Email, Mode=OneWay}" Foreground="{DynamicResource Brush.FG2}"/> |
| 53 | + </TextBlock> |
| 54 | + </StackPanel> |
| 55 | + </DataTemplate> |
| 56 | + </ContentControl.DataTemplates> |
| 57 | + </ContentControl> |
| 58 | + |
| 59 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 60 | + Classes="info_label" |
| 61 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 62 | + Text="{DynamicResource Text.Tag.Time}"/> |
| 63 | + <TextBlock Grid.Row="1" Grid.Column="1" |
| 64 | + Margin="8,0,0,0" |
| 65 | + Text="{Binding CreatorDateStr, Mode=OneWay}"/> |
| 66 | + </Grid> |
| 67 | + |
40 | 68 | <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
|
41 | 69 | </StackPanel>
|
42 | 70 | </DataTemplate>
|
|
109 | 137 | </Border>
|
110 | 138 | </StackPanel>
|
111 | 139 |
|
| 140 | + <Grid RowDefinitions="20,20" ColumnDefinitions="Auto,*" Margin="0,6" IsVisible="{Binding IsAnnotated}"> |
| 141 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 142 | + Classes="info_label" |
| 143 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 144 | + Text="{DynamicResource Text.Tag.Tagger}"/> |
| 145 | + <ContentControl Grid.Row="0" Grid.Column="1" Margin="8,0,0,0" Content="{Binding Creator}"> |
| 146 | + <ContentControl.DataTemplates> |
| 147 | + <DataTemplate DataType="m:User"> |
| 148 | + <StackPanel Orientation="Horizontal"> |
| 149 | + <v:Avatar Width="16" Height="16" User="{Binding}"/> |
| 150 | + <TextBlock Margin="8,0,0,0"> |
| 151 | + <Run Text="{Binding Name, Mode=OneWay}"/> |
| 152 | + <Run Text="{Binding Email, Mode=OneWay}" Foreground="{DynamicResource Brush.FG2}"/> |
| 153 | + </TextBlock> |
| 154 | + </StackPanel> |
| 155 | + </DataTemplate> |
| 156 | + </ContentControl.DataTemplates> |
| 157 | + </ContentControl> |
| 158 | + |
| 159 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 160 | + Classes="info_label" |
| 161 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 162 | + Text="{DynamicResource Text.Tag.Time}"/> |
| 163 | + <TextBlock Grid.Row="1" Grid.Column="1" |
| 164 | + Margin="8,0,0,0" |
| 165 | + Text="{Binding CreatorDateStr, Mode=OneWay}"/> |
| 166 | + </Grid> |
| 167 | + |
112 | 168 | <TextBlock Text="{Binding Message}" IsVisible="{Binding Message, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
|
113 | 169 | </StackPanel>
|
114 | 170 | </ToolTip.Tip>
|
|
0 commit comments