0
I’m having difficulty in c# because when I click a button, it has to disable a button and leave the Focus in a txt.
But I don’t 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 -->
Thank you so much for your help !!!
– Sora