i am new user in devexpress WPF app. i really want to learn how to detect any changes on textbox event? For example; there are 2 textbox (devexpress) (txt1,txt2) . if i erase values on txt1, txt2 must erase own values.
like that:
private void txt1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Delete)
{
txt2.Text = String.Empty;
}
}
is it true? Can you help me?
If the text of txt2 has to be exactly the same like in txt1, use binding:
If you just want to get the changes, try this (using the TextChanged-Event instead of KeyDown, because you also can paste strings into textboxes):
If you want to set txt2.Text = txt1.Text by code