BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
private void TableDockingManager_DockStateChanged(FrameworkElement sender, DockStateEventArgs e) { if(e.NewState == DockState.Hidden) { // Used to remove the children from the DockingManager TableDockingManager.Children.Remove(sender); } } |
private void TableDockingManager_CloseButtonClick(object sender, CloseButtonEventArgs e) { //Handles the closing of Document child e.Cancel = true; } |
(TableDockingManager.DocContainer as DocumentContainer).Loaded += MainWindow_Loaded; void MainWindow_Loaded(object sender, RoutedEventArgs e) { (TableDockingManager.DocContainer as DocumentContainer).DocumentClosing += MainWindow_DocumentClosing; } void MainWindow_DocumentClosing(object sender, CancelingRoutedEventArgs e) { e.Cancel = true; } |