Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListView Name="TLStreamView"
- Height="200"
- ItemsSource="{Binding Streams}"
- AlternationCount="1"
- Foreground="Black"
- MouseDoubleClick="OnMouseDoubleClick"
- GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler">
- <ListView.View>
- <GridView>
- <GridViewColumn Width="40" DisplayMemberBinding="{Binding StreamType}" CellTemplate="{StaticResource GridViewIconCellTemplate}">
- <GridViewColumn.Header>
- <GridViewColumnHeader Tag="StreamType" />
- </GridViewColumn.Header>
- </GridViewColumn>
- <GridViewColumn Width="40">
- <GridViewColumn.Header>
- <GridViewColumnHeader Tag="ChannelType" />
- </GridViewColumn.Header>
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Image Source="{Binding ChannelType, Converter={StaticResource EnumToImagePathConverter}}" Width="24" Height="24" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="20" DisplayMemberBinding="{Binding Race}">
- <GridViewColumn.Header>
- <GridViewColumnHeader Tag="Race">Race</GridViewColumnHeader>
- </GridViewColumn.Header>
- </GridViewColumn>
- <GridViewColumn Width="150" DisplayMemberBinding="{Binding Owner}">
- <GridViewColumn.Header>
- <GridViewColumnHeader Tag="Owner">Name</GridViewColumnHeader>
- </GridViewColumn.Header>
- </GridViewColumn>
- <GridViewColumn Width="100" DisplayMemberBinding="{Binding Viewers}">
- <GridViewColumn.Header>
- <GridViewColumnHeader Tag="Viewers">Viewer</GridViewColumnHeader>
- </GridViewColumn.Header>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement