I have the below xaml markup, the button does not seen to stretch across the screen instead its left aligned. It is contained in a stack panel. What am I doing wrong here?
<Grid>
<ListBox Name="SideNavBar">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
<Button Content="{Binding}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>