There are two TextBox elements and one Button in the markup. All this is placed in the StackPanel. When you start the application, the cursor flashes in the first TextBox element. Please tell me how to disable the automatic install focus.
<StackPanel x:Name="stack_Box" Canvas.ZIndex="2" Grid.Row="1" > <TextBox x:Name="textbox_Login" HorizontalAlignment="Center" Margin="0,20,0,0" Text="" VerticalAlignment="Top" Width="200" FontSize="20" GotFocus="textBox_Login_GotFocus" PlaceholderText="Логин"/> <TextBox x:Name="textbox_Password" HorizontalAlignment="Center" Margin="0,20,0,0" TextWrapping="NoWrap" VerticalAlignment="Bottom" Width="200" FontSize="20" GotFocus="textBox_Password_GotFocus" PlaceholderText="Пароль"/> <Button x:Name="button_Enter" Content="Войти" HorizontalAlignment="Center" Margin="0,20,0,0" VerticalAlignment="Bottom" Width="200" Canvas.ZIndex="2" FontSize="20" Foreground="White" /> </StackPanel>