How would I set focus to a textbox without specifying the name for that textbox? At the moment I am doing the following
<Window FocusManager.FocusedElement="{Binding ElementName=Username}">
<Grid>
<TextBox Text="{Binding Username}" Name="Username" />
</Grid>
</Window>
Is there any way of doing this without specifying a Name for the textbox. As I believe in MVVM having a Name element usually means bad design?