WPF ListBox of Button's: how to change selected item on click with XAML
I have a templated listbox: <ListBox Grid.Row="0" Grid.Column="1" Background="Transparent" BorderThickness="0" x:Name="mainMenu" ItemsSource="{Binding Source={x:Static local:MenuConfig.MainMenu}, Mode=OneTime}" IsSynchronizedWithCurrentItem="True"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <EventSetter ...