ListViewItem の次の XAML/コントロール テンプレートがあります。
<Window.Resources>
<ControlTemplate x:Key="ItemTemplate" TargetType="ListViewItem">
<Border BorderThickness="{TemplateBinding Border.BorderThickness}" Padding="0,5,0,5" BorderBrush="{TemplateBinding Border.BorderBrush}"
Background="{TemplateBinding Panel.Background}" SnapsToDevicePixels="True">
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
</Border>
</ControlTemplate>
<Style TargetType="ListViewItem">
<Setter Property="Template" Value="{StaticResource ItemTemplate}" />
</Style>
<DataTemplate x:Key="ItemDataTemplate">
<RadioButton
x:Name="radiobutton" GroupName="LeGroup"
Content="{Binding Path=Name}" Checked="radiobutton_Checked" />
</DataTemplate>
</Window.Resources>
そして、SelectionChanged を起動するように設定しようとすると、マウスの右クリックでラジオ ボタンがチェックされている場合にのみ起動します。通常の左クリックのときに発射する必要があります。
<ListView x:Name="radioListView" SelectionMode="Single" ItemsSource="{Binding}" ItemTemplate="{StaticResource ItemDataTemplate}" SelectionChanged="radioListView_SelectionChanged" Loaded="radioListView_Loaded"></ListView>
右クリックで selectionchanged イベントを強制することについて言及しているものを見つけることができないようです。標準は左クリックです。
前もって感謝します :)
編集:
そのため、左クリックでラジオ ボタン (および関連するテキスト) の外側をクリックすると、SelectionChanged イベントが発生することに気付きました。ラジオボタンがリストビューとは独立して機能しているかのようです。SelectionChanged イベントは、ラジオ ボタン要素内での右クリックで発生します。奇妙なことに、まだそれを理解しようとしています。