これはかなり簡単な質問だと思いますが、答えが見つかりません。データ テンプレートに項目テンプレートが定義されています。アイテムが選択されたら、コマンドをトリガーして要素の名前を選択し、それを別の場所に適用したいと思います。しばらくの間、MouseDown イベントは私のコマンドを受け入れません。
<ListView Margin="4" Grid.Row="1" Grid.ColumnSpan="2" ItemsSource="{Binding Path=ExistingStateInfos, ElementName=Window}"
SelectedItem="{Binding Path=SelectedStateInfo, ElementName=Window}" x:Name="statinfoListview">
<ListView.ItemTemplate>
<DataTemplate DataType="{x:Type States:StateInfo}">
<TextBlock Text="{Binding Path=Name}" MouseDown="{x:Static MyWindow.ApplyStateInfoNameToStateCommand}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>