Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListBox IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding MyCollection}" ItemTemplate="{StaticResource MyTemplate}/>
- <DataTemplate x:Key="MyTemplate" DataType="{x:Type Classes:MyClass}">
- <StackPanel FocusManager.FocusedElement="{Binding ElementName=firstButton}">
- <Button Name="firstButton" />
- </StackPanel>
- </DataTemplate>
Add Comment
Please, Sign In to add comment