1 2 3 4 5 6 7 8 9 10
| <UserControl x:Class="BuzzerGame.View.Control.ucPlayerRegisterView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel Orientation="Horizontal">
<Label>Player</Label>
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=(ItemsControl.AlternationIndex),StringFormat=Position \{0\}}" />
<TextBox VerticalAlignment="Bottom" Width="200" Text="{Binding Path=Name}"/>
</StackPanel>
</UserControl> |