I am creating a listBox. I am trying to clear the fields, so I realized that it is, I set the style padding to 0 (left padding).
But can I still see some reserve in it, and I need not have any advantage in this? Do you know what will be the problem?
<ListBox ItemsSource="{Binding Partitions}"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <Canvas /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="Padding" Value="0"/> <Setter Property="Canvas.Top"> ... </Setter> </Style> </ListBox.ItemContainerStyle>
I mean, I see extra space around the element, and I cannot process it to change to 0.
source share