Hi everyone,
I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.
I have written a sample project.
The MainWindow contains a Button and I have written an handler to the Button's Click event.
Here is the MainWindow's code-behind :
The attached picture 1.png shows the application before closing the RadWindow.
The attached picture 2.png shows the application after closing the RadWindow.
The main window has been automatically put in background - behind all other running applications's window - after closing the RadWindow.
Why ?
I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.
I have written a sample project.
The MainWindow contains a Button and I have written an handler to the Button's Click event.
Here is the MainWindow's code-behind :
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Navigation;
using
System.Windows.Shapes;
using
Telerik.Windows.Controls;
namespace
MainWindowInBackground
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
RadWindow l_hostWindow =
new
RadWindow()
{
Owner = System.Windows.Application.Current.MainWindow,
WindowStartupLocation = WindowStartupLocation.CenterOwner,
Content =
"Test"
};
l_hostWindow.Show();
MessageBox.Show(
"MessageBox"
,
"MessageBox"
, MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
}
}
}
The attached picture 1.png shows the application before closing the RadWindow.
The attached picture 2.png shows the application after closing the RadWindow.
The main window has been automatically put in background - behind all other running applications's window - after closing the RadWindow.
Why ?