Skip to content

Commit 98a36c0

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ProjectTemplate/src/ProjectTemplateStyle_xBind.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<ResourceDictionary x:Class="CommunityToolkit.WinUI.Controls.ProjectTemplateStyle_xBind"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -33,10 +33,10 @@
3333
<Setter Property="Template">
3434
<Setter.Value>
3535
<ControlTemplate TargetType="controls:ProjectTemplate_xBind">
36-
<ContentControl x:Name="ContentContainer"
36+
<ContentPresenter x:Name="ContentContainer"
3737
HorizontalContentAlignment="Stretch"
3838
VerticalContentAlignment="Stretch">
39-
<ContentControl.ContentTemplate>
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)