I am having difficulty in C # because when I click on a button, it has to disable a button and leave the focus in a txt.
But I do not know how to reference an object in wpf (xaml) in the encoding file (cs)
private void View(object parameter)
{
//Como referênciar o button01 e o txt01 aqui?
}
<Button HorizontalAlignment="Center"
Command="{Binding SearchCommand, Mode=OneTime}"
Visibility="{Binding ShowList}"
Style="{StaticResource ButtonProcurar}" Click="Button_Click"/>
<Button x:Name="button01" Content="Desabilitar ao clicar no botão acima" />
<TextBox x:Name="txt01" Text="Texto que o cursor deverá vir ao clicar no primeiro botão" />
<!-- C# WPF XAML -->