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