i have a textbox of label “NAME” i need to disable the a button(that is next Button) as long as this textbox is empty.
this is my appproach
private void planName_TextChanged(object sender, TextChangedEventArgs e)
{
if (planName.Text.Length != 0)
{
parent.EnableOrDisableNextButton("enable") ;
}
}
this is working for first time but if user again clear the name then next button remain enable s or if he cut the whole field.
how to get this?
You need to disable it with else: