I need to incorporate a separator between items in my ListBoxItems for example where some items in my items source would be placed beneath the separator and some above it .
For example :
The above is done by altering the ControlTemplate of the ListBox :
<ScrollViewer>
<StackPanel>
<ItemsPresenter />
<Separator BorderBrush="Red" />
<ListBoxItem Content=".." ContentTemplate="..." x:Key="helpItem"/>
</StackPanel>
</ScrollViewer>
The problem is that the "helpItem" does not get selected since it is not part of my ItemsSource.
For now being able to select it would suffice
1)So my First question would be how could i associate this item with my ItemsSource or alternatively make it selectable ?
Further more in the future i might wan't to have more items which would be placed in the bottom half of my listbox
2)How would i physically place a Separator in a given place between my items , as if to divide my ItemsPresenter in a logical spot ?