The style uses the mark on the left when using the function to group ListView in WPF.
ListView example with margin problem:

ListView sample without grouping (the same style of an element in a grouped list is required):

Question:
How to remove a field / addition? An item (selected) in a grouped list should fill the same space as in a non-group list.
Update:
<ListView Margin="20,0,0,0" ItemsSource="{Binding ItemsView}" SelectedItem="{Binding SelectedItem}" IsSynchronizedWithCurrentItem="True" SelectionMode="Single" BorderThickness="0" Background="Transparent"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate DataType="data:Item"> <DockPanel HorizontalAlignment="Stretch"> <TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="0,5,5,5" /> <Separator /> </DockPanel> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </ListView.GroupStyle> <ListView.ItemTemplate> <DataTemplate DataType="data:Item"> <TextBlock Margin="10,10,10,10" Text="{Binding Name}" /> </DataTemplate> </ListView.ItemTemplate> </ListView>
source share