Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListBox x:Name="LogBox" Margin="0,36,0,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalContentAlignment="Center" >
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid Width="330" x:Name="CUGrid" Height="150" MouseDown="Grid_MouseDown">
- <Rectangle Stroke="Teal" RadiusX="3" RadiusY="3"/>
- <ListBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding Logs}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid>
- <StackPanel HorizontalAlignment="Left">
- <StackPanel Orientation="Horizontal">
- <Label Content="Начало: " Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
- <Label Content="{Binding StartTime}" Foreground="Orange" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
- </StackPanel>
- <Rectangle Height="1" Margin="2,0" Fill="Cyan" RadiusX="1" RadiusY="1"></Rectangle>
- <StackPanel Orientation="Horizontal">
- <Label Content="Конец: " Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
- <Label Content="{Binding EndTime}" Foreground="Orange" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" FontSize="22"></Label>
- </StackPanel>
- </StackPanel>
- <Label Content="{Binding Passed}" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="Teal" FontFamily="a_OverWatchRUS" FontSize="20"></Label>
- </Grid>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <Grid Width="130" HorizontalAlignment="Right">
- <StackPanel VerticalAlignment="Center">
- <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Date}" FontSize="22" Margin="0,0,0,10"></Label>
- <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Total}" FontSize="20" ></Label>
- <Label Foreground="White" FontFamily="/TimeCounter;component/#BigNoodleTooOblique" HorizontalContentAlignment="Center" Content="{Binding Passed}" FontSize="20" </Label>
- </StackPanel>
- </Grid>
- </Grid>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- class ForLB
- {
- public string Date { get; set; }
- public string Total { get; set; }
- public string Passed { get; set; }
- public List<DayLogLB> Logs { get; set; }
- public ForLB()
- {
- Logs = new List<DayLogLB>();
- }
- public class DayLogLB
- {
- public string StartTime { get; set; }
- public string EndTime { get; set; }
- public string Passed { get; set; }
- }
- }
Add Comment
Please, Sign In to add comment