<ListBox ItemsSource="{Binding FiltersWebsite}"> <ListBox.Style> <Style TargetType="ListBox"> <Setter Property="ItemContainerStyle"> <Setter.Value> <Style TargetType="{x:Type ListBoxItem}"> <Setter Property="IsSelected" Value="{Binding IsSelected}" /> <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> <Setter Property="KeyboardNavigation.IsTabStop" Value="False" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListBoxItem}"> <Border Focusable="False"> <ContentPresenter /> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </Setter.Value> </Setter> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <TextBlock Text="{Binding Description}" /> </DataTemplate> </Setter.Value> </Setter> </Style> </ListBox.Style> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <i:InvokeCommandAction Command="{Binding RefreshViewCommand}" /> </i:EventTrigger> </i:Interaction.Triggers> </ListBox>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)