Guest User

Untitled

a guest
Apr 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. <ListBox x:Name="LogBox" Margin="0,36,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalContentAlignment="Center" >
  2. <ListBox.ItemTemplate>
  3. <DataTemplate>
  4. <Grid Width="330" x:Name="CUGrid" Height="150" MouseDown="Grid_MouseDown">
  5. <Rectangle Stroke="Teal" RadiusX="3" RadiusY="3"/>
  6. <ListBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding Logs}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}">
  7. <ListBox.ItemTemplate>
  8. <DataTemplate>
  9. <Grid>
  10. <StackPanel HorizontalAlignment="Left">
  11. <StackPanel Orientation="Horizontal">
  12. <Label Content="Начало: " Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
  13. <Label Content="{Binding StartTime}" Foreground="Orange" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
  14. </StackPanel>
  15. <Rectangle Height="1" Margin="2,0" Fill="Cyan" RadiusX="1" RadiusY="1"></Rectangle>
  16. <StackPanel Orientation="Horizontal">
  17. <Label Content="Конец: " Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
  18. <Label Content="{Binding EndTime}" Foreground="Orange" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
  19. </StackPanel>
  20. </StackPanel>
  21. <Label Content="{Binding Passed}" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="Teal" FontFamily="a_OverWatchRUS" FontSize="20"></Label>
  22. </Grid>
  23. </DataTemplate>
  24. </ListBox.ItemTemplate>
  25. </ListBox>
  26. <Grid Width="130" HorizontalAlignment="Right">
  27. <StackPanel VerticalAlignment="Center">
  28. <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Date}" FontSize="22" Margin="0,0,0,10"></Label>
  29. <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Total}" FontSize="20" ></Label>
  30. <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Passed}" FontSize="20" </Label>
  31. </StackPanel>
  32. </Grid>
  33. </Grid>
  34. </DataTemplate>
  35. </ListBox.ItemTemplate>
  36. </ListBox>
  37.  
  38. class ForLB
  39. {
  40. public string Date { get; set; }
  41. public string Total { get; set; }
  42. public string Passed { get; set; }
  43. public List<DayLogLB> Logs { get; set; }
  44. public ForLB()
  45. {
  46. Logs = new List<DayLogLB>();
  47. }
  48. public class DayLogLB
  49. {
  50. public string StartTime { get; set; }
  51. public string EndTime { get; set; }
  52. public string Passed { get; set; }
  53. }
  54. }
Add Comment
Please, Sign In to add comment