Try to set HorizontalContentAlignment
property of ListBoxItem to Stretch
:
<ListBox>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
UPDATE :
In addition to above step, remove hardcoded Width
from your StackPanel
:
<DataTemplate x:Key="DataTemplate1">
<StackPanel toolkit:TiltEffect.IsTiltEnabled="True" Orientation="Vertical" Height="115">
........
........
</StackPanel>
</DataTemplate>