0
我在WPF 4.5下面的代码:WPF - 处理窗口关闭所有者窗口
private void Button_Click_2(object sender, RoutedEventArgs e)
{
SepararStockView SSV = new SepararStockView(StockIDSeparar)
{
Title = "Separar Stock",
ShowInTaskbar = false, // don't show the dialog on the taskbar
Topmost = true, // ensure we're Always On Top
ResizeMode = ResizeMode.NoResize, // remove excess caption bar buttons
Owner = Application.Current.MainWindow,
}; ;
}
我怎样才能处理好“儿童”窗口(“SSV”)到“关闭”重新加载一个网格?
http://stackoverflow.com/questions/7901007/sending-event-between-2-wpf-windows – 2015-01-26 18:19:00
如果它使用ShowDialog呈现,父窗口将会阻塞直到它关闭。 – Shoe 2015-01-26 18:19:33
@Shoe所以,我只是添加加载方法的网格我想加载SSV.show()后,必须正常工作? – user1287678 2015-01-26 18:35:23