djscsi
پنج شنبه 21 آذر 1392, 12:21 عصر
یکسری eventها برای یکسری کنترلها کار نمیکنه
مثلا من یک grid گذاشتم داخلش یه button داخل این button یه textbox و MouseLeftButtonDown رو برای هر سه نوشتم کار نکرد ولی preview همین کار کرد. چرا؟
private void Grid1_Event(object sender, MouseButtonEventArgs e)
{
Title += " grid ";
}
private void Txt1_Event(object sender, MouseButtonEventArgs e)
{
Title += " txt ";
}
private void Btn1_Event(object sender, MouseButtonEventArgs e)
{
Title += " btn ";
}
مثلا من یک grid گذاشتم داخلش یه button داخل این button یه textbox و MouseLeftButtonDown رو برای هر سه نوشتم کار نکرد ولی preview همین کار کرد. چرا؟
private void Grid1_Event(object sender, MouseButtonEventArgs e)
{
Title += " grid ";
}
private void Txt1_Event(object sender, MouseButtonEventArgs e)
{
Title += " txt ";
}
private void Btn1_Event(object sender, MouseButtonEventArgs e)
{
Title += " btn ";
}