sbaeumlisberger / VirtualizingWrapPanel

Implementation of a comprehensive VirtualisingWrapPanel for WPF
MIT License
254 stars 35 forks source link

Style SelectedItem #46

Closed AsDotNet closed 1 year ago

AsDotNet commented 1 year ago

Hi,

is it possible the set the style of a selected item in the WrapPanel?

sbaeumlisberger commented 1 year ago

Of course it's possible. You can add a Style with a trigger, for example:

<Style TargetType="{x:Type ListViewItem}">
   <Style.Triggers>
      <Trigger Property="IsSelected" Value="true" >
        <Setter Property="..." Value="..." />
        ... more setters ...
      </Trigger>
   </Style.Triggers>
</Style> 
AsDotNet commented 1 year ago

Thanks! ListViewItem was the hint I needed.