Add style for using ItemsControls with a Conductor

This commit is contained in:
Antony Male 2014-04-23 20:58:05 +01:00
parent bbaef0ff78
commit 8cc0ce1ba9
1 changed files with 11 additions and 0 deletions

View File

@ -13,4 +13,15 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="StyletConductorItemsControl" TargetType="ItemsControl">
<Setter Property="ItemsSource" Value="{Binding Items}"/>
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<ContentControl s:View.Model="{Binding}" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" IsTabStop="False"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>