终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
1.9 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.Pages.View.DebugLogView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. mc:Ignorable="d">
  12. <UserControl.DataContext>
  13. <vm:DebugLogViewModel />
  14. </UserControl.DataContext>
  15. <Grid>
  16. <ScrollViewer
  17. Margin="20"
  18. HorizontalScrollBarVisibility="Hidden"
  19. VerticalScrollBarVisibility="Hidden">
  20. <ItemsControl ItemsSource="{Binding MessageModels}">
  21. <ItemsControl.ItemTemplate>
  22. <DataTemplate>
  23. <Grid>
  24. <TextBlock
  25. FontFamily="黑体"
  26. FontSize="16"
  27. Foreground="{Binding Forground}"
  28. LineHeight="30"
  29. Text="{Binding LogInfo}"
  30. TextWrapping="Wrap">
  31. <!--<TextBlock.Effect>
  32. <DropShadowEffect
  33. Direction="0"
  34. Opacity="0.5"
  35. ShadowDepth="5"
  36. Color="#20aefe" />
  37. </TextBlock.Effect>-->
  38. </TextBlock>
  39. </Grid>
  40. </DataTemplate>
  41. </ItemsControl.ItemTemplate>
  42. </ItemsControl>
  43. </ScrollViewer>
  44. </Grid>
  45. </UserControl>