public static NVcad2dViewWindow AddChildWindow (this WindowContainer container, CadViewPort newViewPort) { // Code Documentation Tag 20140603_04 NVcad2dViewWindow newWindow = new NVcad2dViewWindow(newViewPort); container.Children.Add(newWindow); newWindow.Show(); return(newWindow); }
protected void finishBuildingChildWindow(Moderator aMod) { NVcad2dViewWindow wndow = null; double wndowwidth = 0.0; this.myParentWindow.Dispatcher.BeginInvoke(new Action(() => { wndow = aMod.cadViews.Children[0] as NVcad2dViewWindow; aMod.t.Stop(); aMod.t.Interval = 5; wndowwidth = wndow.ActualWidth; if (wndowwidth > 0.0) { aMod.t.Enabled = false; // Code Documentation Tag 20140603_06 aMod.establishAllViewTransforms(); this.Model.WorldMouse.PropertyChanged += WorldMouse_PropertyChanged; } })); if (wndowwidth == 0.0) { return; } }