Here is an example: How to add a control at the end of a ListBox .
This is a simplified version of the standard ListBox template:
<Border CornerRadius="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> <ScrollViewer x:Name="ScrollViewer" Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="0" TabNavigation="{TemplateBinding TabNavigation}"> <ItemsPresenter /> </ScrollViewer> </Border>
You can wrap <ItemsPresenter /> with a StackPanel , this will allow you to place any content in the scroll StackPanel before or after the list items.
source share