wpf prevent second click button

Posted by neki on Stack Overflow See other posts from Stack Overflow or by neki
Published on 2010-03-11T22:06:57Z Indexed on 2010/03/12 9:07 UTC
Read the original article Hit count: 498

Filed under:
|

hi! i have a problem again. when i click button, window appears. when i click button again same window appears again. i want when i click button first time, page appears. but i wanna prevent second click. can anyone help me about this problem? thanks in advance.

private void Dictionary_Click(object sender, RoutedEventArgs e)
{
  Dictionary dic = new Dictionary();
  dic.Show();
  dic.Topmost = true;
}

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-controls