|
196 | 196 | Margin="{ext:Space 1, 0}" |
197 | 197 | ItemTemplate="{StaticResource MessageTemplate}" /> |
198 | 198 | </controls:DynamicFadeScrollViewer> |
199 | | - |
200 | | - |
| 199 | + |
| 200 | + |
201 | 201 | <TextBlock |
202 | | - Text="No Messages Found" |
203 | | - Classes="BodyTextBlockStyle TextFillColorTertiaryBrush" |
| 202 | + Text="No Messages Found" |
| 203 | + Classes="BodyTextBlockStyle TextFillColorTertiaryBrush" |
204 | 204 | VerticalAlignment="Center" HorizontalAlignment="Center" |
205 | | - IsVisible="{Binding !Chat.Messages.Count}"/> |
| 205 | + IsVisible="{Binding !Chat.Messages.Count}" /> |
206 | 206 |
|
207 | 207 | <Border IsVisible="{Binding ShowNewMessageIndicator}" |
208 | 208 | Background="#953BF8" |
|
320 | 320 |
|
321 | 321 | </Grid> |
322 | 322 |
|
323 | | - |
| 323 | + |
324 | 324 | <Border Grid.Row="0" Grid.RowSpan="3" Grid.Column="1" |
325 | 325 | Background="{DynamicResource ContentBorderLayer2BackgroundBrush}" |
326 | 326 | BorderBrush="{DynamicResource ContentBorderLayer2BorderBrush}" BorderThickness="2 0 0 0"> |
327 | | - |
328 | | - <Grid Margin="{ext:Space 1}"> |
329 | | - <ItemsControl ItemsSource="{Binding Chat.UsersByGroup}"> |
330 | | - <ItemsControl.ItemTemplate> |
331 | | - <DataTemplate> |
332 | | - <Grid Margin="{ext:Space 0, 0, 0, 1}"> |
333 | | - <Grid.RowDefinitions> |
334 | | - <RowDefinition Height="Auto" /> |
335 | | - <RowDefinition Height="{ext:Space 0.5}" /> |
336 | | - <RowDefinition Height="*" /> |
337 | | - </Grid.RowDefinitions> |
338 | | - |
339 | | - <TextBlock Grid.Row="0" Classes="BodyStrongTextBlockStyle" FontWeight="SemiBold" |
340 | | - HorizontalAlignment="Left" |
341 | | - Margin="{ext:Space 0.25, 0, 0, 0}"> |
342 | | - <TextBlock.Text> |
343 | | - <MultiBinding StringFormat='{}{0} - {1}'> |
344 | | - <Binding Path="Key" /> |
345 | | - <Binding Path="Value.Count" /> |
346 | | - </MultiBinding> |
347 | | - </TextBlock.Text> |
348 | | - </TextBlock> |
349 | | - |
350 | | - <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Hidden"> |
351 | | - <ItemsControl ItemsSource="{Binding Value}"> |
352 | | - <ItemsControl.ItemTemplate> |
353 | | - <DataTemplate DataType="chat:ChatUser"> |
354 | | - <controls:ContentCard HorizontalAlignment="Stretch" Cursor="Hand" |
355 | | - PointerPressed="OnUserPressed" |
356 | | - Margin="{ext:Space 0, 0, 0, 1}"> |
357 | | - <FlyoutBase.AttachedFlyout> |
358 | | - <MenuFlyout> |
359 | | - <MenuItem Header="Copy User ID" |
360 | | - Command="{Binding CopyIDCommand}" /> |
361 | | - <MenuItem Header="Set Role" Command="{Binding SetRoleCommand}" |
362 | | - IsVisible="{Binding CanChangeRole}" /> |
363 | | - </MenuFlyout> |
364 | | - </FlyoutBase.AttachedFlyout> |
365 | | - <Grid HorizontalAlignment="Left" Margin="{ext:Space 1}"> |
366 | | - <Grid.RowDefinitions> |
367 | | - <RowDefinition Height="Auto" /> |
368 | | - <RowDefinition Height="Auto" /> |
369 | | - </Grid.RowDefinitions> |
370 | | - |
371 | | - <Grid.ColumnDefinitions> |
372 | | - <ColumnDefinition Width="Auto" /> |
373 | | - <ColumnDefinition Width="{ext:Space 1}" /> |
374 | | - <ColumnDefinition Width="Auto" /> |
375 | | - </Grid.ColumnDefinitions> |
376 | | - |
377 | | - <Border Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" |
378 | | - CornerRadius="8" ClipToBounds="True"> |
379 | | - <Image |
380 | | - asyncImageLoader:ImageLoader.Source="{Binding AvatarUrl}" |
381 | | - RenderOptions.BitmapInterpolationMode="MediumQuality" |
382 | | - Width="32" Height="32" Classes="BodyStrongTextBlockStyle" |
383 | | - VerticalAlignment="Center" /> |
384 | | - </Border> |
385 | | - |
386 | | - <TextBlock Grid.Row="0" Grid.Column="2" |
387 | | - Text="{Binding DisplayName}" |
388 | | - Foreground="{Binding Brush}" |
389 | | - Classes="BodyStrongTextBlockStyle" |
390 | | - VerticalAlignment="Center" /> |
391 | | - |
392 | | - <TextBlock Grid.Row="1" Grid.Column="2" |
393 | | - Text="{Binding OnlineVersion}" |
394 | | - FontSize="12" |
395 | | - Classes="BodyTextBlockStyle TextFillColorTertiaryBrush" |
396 | | - VerticalAlignment="Center" /> |
397 | | - </Grid> |
398 | | - </controls:ContentCard> |
399 | | - </DataTemplate> |
400 | | - </ItemsControl.ItemTemplate> |
401 | | - </ItemsControl> |
402 | | - </ScrollViewer> |
403 | | - </Grid> |
404 | | - </DataTemplate> |
405 | | - </ItemsControl.ItemTemplate> |
406 | | - </ItemsControl> |
407 | | - </Grid> |
| 327 | + |
| 328 | + <Grid Margin="{ext:Space 1}"> |
| 329 | + <controls:DynamicFadeScrollViewer> |
| 330 | + <ItemsControl ItemsSource="{Binding Chat.UsersByGroup}"> |
| 331 | + <ItemsControl.ItemTemplate> |
| 332 | + <DataTemplate> |
| 333 | + <Grid Margin="{ext:Space 0, 0, 0, 1}"> |
| 334 | + <Grid.RowDefinitions> |
| 335 | + <RowDefinition Height="Auto" /> |
| 336 | + <RowDefinition Height="{ext:Space 0.5}" /> |
| 337 | + <RowDefinition Height="*" /> |
| 338 | + </Grid.RowDefinitions> |
| 339 | + |
| 340 | + <TextBlock Grid.Row="0" Classes="BodyStrongTextBlockStyle" FontWeight="SemiBold" |
| 341 | + HorizontalAlignment="Left" |
| 342 | + Margin="{ext:Space 0.25, 0, 0, 0}"> |
| 343 | + <TextBlock.Text> |
| 344 | + <MultiBinding StringFormat='{}{0} - {1}'> |
| 345 | + <Binding Path="Key" /> |
| 346 | + <Binding Path="Value.Count" /> |
| 347 | + </MultiBinding> |
| 348 | + </TextBlock.Text> |
| 349 | + </TextBlock> |
| 350 | + |
| 351 | + <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Hidden"> |
| 352 | + <ItemsControl ItemsSource="{Binding Value}"> |
| 353 | + <ItemsControl.ItemTemplate> |
| 354 | + <DataTemplate DataType="chat:ChatUser"> |
| 355 | + <controls:ContentCard HorizontalAlignment="Stretch" Cursor="Hand" |
| 356 | + PointerPressed="OnUserPressed" |
| 357 | + Margin="{ext:Space 0, 0, 0, 1}"> |
| 358 | + <FlyoutBase.AttachedFlyout> |
| 359 | + <MenuFlyout> |
| 360 | + <MenuItem Header="Copy User ID" |
| 361 | + Command="{Binding CopyIDCommand}" /> |
| 362 | + <MenuItem Header="Set Role" |
| 363 | + Command="{Binding SetRoleCommand}" |
| 364 | + IsVisible="{Binding CanChangeRole}" /> |
| 365 | + </MenuFlyout> |
| 366 | + </FlyoutBase.AttachedFlyout> |
| 367 | + <Grid HorizontalAlignment="Left" Margin="{ext:Space 1}"> |
| 368 | + <Grid.RowDefinitions> |
| 369 | + <RowDefinition Height="Auto" /> |
| 370 | + <RowDefinition Height="Auto" /> |
| 371 | + </Grid.RowDefinitions> |
| 372 | + |
| 373 | + <Grid.ColumnDefinitions> |
| 374 | + <ColumnDefinition Width="Auto" /> |
| 375 | + <ColumnDefinition Width="{ext:Space 1}" /> |
| 376 | + <ColumnDefinition Width="Auto" /> |
| 377 | + </Grid.ColumnDefinitions> |
| 378 | + |
| 379 | + <Border Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" |
| 380 | + CornerRadius="8" ClipToBounds="True"> |
| 381 | + <Image |
| 382 | + asyncImageLoader:ImageLoader.Source="{Binding AvatarUrl}" |
| 383 | + RenderOptions.BitmapInterpolationMode="MediumQuality" |
| 384 | + Width="32" Height="32" |
| 385 | + Classes="BodyStrongTextBlockStyle" |
| 386 | + VerticalAlignment="Center" /> |
| 387 | + </Border> |
| 388 | + |
| 389 | + <TextBlock Grid.Row="0" Grid.Column="2" |
| 390 | + Text="{Binding DisplayName}" |
| 391 | + Foreground="{Binding Brush}" |
| 392 | + Classes="BodyStrongTextBlockStyle" |
| 393 | + VerticalAlignment="Center" /> |
| 394 | + |
| 395 | + <TextBlock Grid.Row="1" Grid.Column="2" |
| 396 | + Text="{Binding OnlineVersion}" |
| 397 | + FontSize="12" |
| 398 | + Classes="BodyTextBlockStyle TextFillColorTertiaryBrush" |
| 399 | + VerticalAlignment="Center" /> |
| 400 | + </Grid> |
| 401 | + </controls:ContentCard> |
| 402 | + </DataTemplate> |
| 403 | + </ItemsControl.ItemTemplate> |
| 404 | + </ItemsControl> |
| 405 | + </ScrollViewer> |
| 406 | + </Grid> |
| 407 | + </DataTemplate> |
| 408 | + </ItemsControl.ItemTemplate> |
| 409 | + </ItemsControl> |
| 410 | + </controls:DynamicFadeScrollViewer> |
| 411 | + </Grid> |
408 | 412 | </Border> |
409 | 413 | </Grid> |
410 | 414 |
|
|
0 commit comments