Skip to content

Commit 5540ece

Browse files
committed
Add footer templatepart
1 parent 7f04027 commit 5540ece

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Input/TokenizingTextBox/TokenizingTextBox.xaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<Grid.RowDefinitions>
6969
<RowDefinition Height="Auto"/>
7070
<RowDefinition Height="Auto"/>
71+
<RowDefinition Height="Auto"/>
7172
</Grid.RowDefinitions>
7273

7374
<ContentPresenter Content="{TemplateBinding Header}"
@@ -108,12 +109,17 @@
108109
ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}">
109110

110111
<ItemsPresenter Padding="{TemplateBinding Padding}"
111-
Margin="{StaticResource TokenizingTextBoxPresenterMargin}"
112-
Footer="{TemplateBinding Footer}"
113-
FooterTemplate="{TemplateBinding FooterTemplate}"
114-
FooterTransitions="{TemplateBinding FooterTransitions}" />
112+
Margin="{StaticResource TokenizingTextBoxPresenterMargin}"/>
115113
</ScrollViewer>
116114

115+
<ContentPresenter Grid.Row="2"
116+
Content="{TemplateBinding Footer}"
117+
ContentTemplate="{TemplateBinding FooterTemplate}"
118+
Transitions="{TemplateBinding FooterTransitions}"
119+
FontWeight="Normal"
120+
TextWrapping="Wrap"
121+
VerticalAlignment="Top" />
122+
117123
<VisualStateManager.VisualStateGroups>
118124
<VisualStateGroup x:Name="CommonStates">
119125
<VisualState x:Name="Disabled">

0 commit comments

Comments
 (0)