Skip to content

Commit e6ba606

Browse files
committed
Changed xBind template to use a ContentPresenter instead of a ContentControl in ControlTemplate
1 parent fa4dd48 commit e6ba606

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ProjectTemplate/src/ProjectTemplateStyle_xBind.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
<Setter Property="Template">
3434
<Setter.Value>
3535
<ControlTemplate TargetType="controls:ProjectTemplate_xBind">
36-
<ContentControl x:Name="ContentContainer"
37-
HorizontalContentAlignment="Stretch"
38-
VerticalContentAlignment="Stretch">
39-
<ContentControl.ContentTemplate>
36+
<ContentPresenter x:Name="ContentContainer"
37+
HorizontalContentAlignment="Stretch"
38+
VerticalContentAlignment="Stretch">
39+
<ContentPresenter.ContentTemplate>
4040
<DataTemplate x:DataType="controls:ProjectTemplate_xBind">
4141
<Grid Padding="{x:Bind ItemPadding}"
4242
PointerEntered="{x:Bind Element_PointerEntered}">
@@ -48,8 +48,8 @@
4848
</StackPanel>
4949
</Grid>
5050
</DataTemplate>
51-
</ContentControl.ContentTemplate>
52-
</ContentControl>
51+
</ContentPresenter.ContentTemplate>
52+
</ContentPresenter>
5353
</ControlTemplate>
5454
</Setter.Value>
5555
</Setter>

0 commit comments

Comments
 (0)