Each item in a WPF ListBox control seems to have a bit of left padding. How can I restyle to remove all padding?
You can also style the ListBoxItem
s for a specific ListBox
as follows:
<ListBox> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="Padding" Value="0"/> </Style> </ListBox.ItemContainerStyle> </ListBox>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With