I would like to change the style of a TreeListView.
In our TreeListView I have activated the multi selection (SelectionMode = Extended). Now I want to indicate which ListItem has the KeyboardFocus with a border.
Therefore I use a trigger within the <TreeListView.ItemContainerStyle>.
If no predefined style of the TreeListView is visible (e.g. MouseHover or SelectedItem), the border of my trigger is visible.
But when I e.g. hover over the affected ListItem, my style (border) disappears and only the predefined style of the TreeListView is visible.
Also the definition of a multi trigger does not work.
Here is my code to set the style via trigger:
<grids:TreeListView.ItemContainerStyle>
<Style TargetType="{x:Type grids:TreeListViewItem}">
<Style.Triggers>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" Value="Black"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True"/>
<Condition Property="IsKeyboardFocused" Value="True"/>
</MultiTrigger.Conditions>
<MultiTrigger.Setters>
<Setter Property="Background" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ListItemBackgroundHoverBrushKey}}"/>
<Setter Property="BorderBrush" Value="Black"/>
</MultiTrigger.Setters>
</MultiTrigger>
</Style.Triggers>
</Style>
</grids:TreeListView.ItemContainerStyle>
Shouldn't the definition via trigger work as expected? If not, how can I visualize the tree item with the keyboard focus?