Sunday, June 15, 2014

minimize the window on cross button click event just like skype or other VOIP apps in WPF

I have to create a WPF app where user click on cross button its should minimize the app on task bar instead of closing , its same as skype perform.

        Title="MainWindow" Height="350" Width="525" Closing="Window_Closing">
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
            WindowState = WindowState.Minimized;
            e.Cancel = true;

No comments:

Post a Comment