Я сделал вид моего GameViewModelПривязка к свойству ViewModel от шаблона
У меня есть некоторые XAML, как этот
<UserControl.Resources>
<DataTemplate DataType="{x:Type ViewModels:PlayerViewModel}">
<StackPanel>
<Button
Content="{Binding ?????}"
Command="{Binding WrongAnswerCommand}" />
<TextBlock
Text="{Binding Name}" />
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<ListBox Grid.Row="0"
ItemsSource="{Binding Players}"
IsSynchronizedWithCurrentItem="True">
</ListBox>
</Grid>
Итак, это наблюдаемая коллекция игроков.
Мне нужно, чтобы содержимое кнопки привязывалось к свойству GameViewModel.
Что следует использовать?