<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:PeerSDK.Samples"
    x:Class="PeerSDK.Samples.LogWindow"
    WindowStartupLocation="CenterScreen"
    Title="Log"
    Width="640"
    Height="640"
    FontFamily="Verdana"
    FontSize="16"
    ShowInTaskbar="false"
    >

    <Window.Resources>
        <local:BoolVisibilityConverter x:Key="converter" />
    </Window.Resources>

    <ListBox ItemsSource="{Binding Logs}" VirtualizingStackPanel.IsVirtualizing="True" HorizontalContentAlignment="Stretch">
        <ListBox.ItemTemplate>
            <DataTemplate>
                <Grid HorizontalAlignment="Stretch">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="40"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="40"/>
                    </Grid.ColumnDefinitions>
                    <Label Grid.Column="0" FontFamily="Wingdings 2" Visibility="{Binding Playable,Converter={StaticResource converter},ConverterParameter=True}">9</Label>
                    <Label Grid.Column="1" Content="{Binding Time}" />
                    <Label Grid.Column="2" Content="{Binding Type}" />
                    <Label Grid.Column="3" Content="{Binding Channel}" />
                </Grid>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
</Window>