Hi,
> i have the following XAML and can't seem to figure out how to make the
> checkbox react to the space bar. I have the same problem - any help would be appreciated. The minimal
reproducible code is here:
<ListBox ItemsSource="{x:Static Fonts.SystemFontFamilies}">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox>
<TextBlock Text="{Binding Source}"/>
</CheckBox>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
As it turns out, a space bar does not work because key focus is not on a
check box but on ListBoxItem. If I hit [TAB] to move the focus to the check
box, then it works.
Keyboard operation is essential for my application. Please, please help me.
Thank you.