private void gifButton_Click(object sender, RoutedEventArgs e) { InsertImageWindow window = new InsertImageWindow() { Owner = Application.Current.MainWindow }; window.Closed += Window_Closed; window.Show(); //if( window.ShowDialog() ?? false ) //{ //} }
private void gifButton_Click(object sender, RoutedEventArgs e) { InsertImageWindow window = new InsertImageWindow() { Owner = Application.Current.MainWindow }; window.Closing += Window_Closing; window.Show(); //if( window.ShowDialog() ?? false ) //{ // ImageUrlChatMessage imageMessage = new ImageUrlChatMessage(); // imageMessage.ImageUrl = window.SelectedResult.LargeImageUrl; // Message = imageMessage.ToMessageString(); // MoveCursorToEnd(); //} }