Skip to content

Instantly share code, notes, and snippets.

@alexandru-calinoiu
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandru-calinoiu/c30f608c0b8cbc53a27c to your computer and use it in GitHub Desktop.
Save alexandru-calinoiu/c30f608c0b8cbc53a27c to your computer and use it in GitHub Desktop.
Add the list of devices in the second row
<Border Grid.Row="1" Style="{DynamicResource ListScreenContainerStyle}"
BorderThickness="{DynamicResource ListBorderThickness}">
<ListView SelectionMode="Single"
ItemsSource="{Binding Path=Devices, Mode=OneWay}"
Style="{StaticResource VirtualisedMetroListView}"
BorderThickness="0">
<ListView.ItemTemplate>
<DataTemplate>
<ContentControl cal:View.Model="{Binding}" />
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListViewItem}">
<!-- Todo: add control template -->
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListView.ItemContainerStyle>
</ListView>
</Border>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment