Closed Swiftpaws closed 4 years ago
If you want to save space between listbox items (not have white space inbetween items) but also want to have the border on mouseover:
`
<Setter Property="BorderThickness" Value="0" /> <Setter Property="Padding" Value="1.25" /> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True" /> <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="False" /> </MultiDataTrigger.Conditions> <MultiDataTrigger.Setters> <Setter Property="Background" Value="{DynamicResource {x:Static adonisUi:Brushes.Layer1HighlightBrush}}" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.Layer1HighlightBorderBrush}}" /> <Setter Property="extensions:CursorSpotlightExtension.BackgroundBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.Layer1IntenseHighlightBrush}}" /> <Setter Property="extensions:CursorSpotlightExtension.BorderBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.Layer1IntenseHighlightBorderBrush}}" /> </MultiDataTrigger.Setters> </MultiDataTrigger> </Style.Triggers>
Just FYI
If you want to save space between listbox items (not have white space inbetween items) but also want to have the border on mouseover:
`
`