mirror of https://github.com/AMT-Cheif/Stylet.git
Add style for using ItemsControls with a Conductor
This commit is contained in:
parent
bbaef0ff78
commit
8cc0ce1ba9
|
@ -13,4 +13,15 @@
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</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>
|
</ResourceDictionary>
|
Loading…
Reference in New Issue