Focus element on opening

To focus a TextBox on opening of the view, you have to work with the FocusManager:

view

1
2
3
<Grid FocusManager.FocusedElement="{Binding ElementName=txtConfig}">
    <TextBox x:Name="txtConfig" />
</Grid>

With this linking of the FocusManager to the TextBox Name, the cursor and focus gets set on the TextBox element on the opened View.