Beispiel #1
0
 public void removeInspectControl()
 {
     ControlFolder.inspectControl InspectControl2Del = Grid1.FindName("InspectControl") as ControlFolder.inspectControl;
     InspectControl2Del.stopThread();
     Grid1.Children.Remove(InspectControl2Del);
     Grid1.UnregisterName(InspectControl2Del.Name);
 }
Beispiel #2
0
 private void destroyInspectControl()
 {
     ControlFolder.inspectControl InspectControl2Del = Grid1.FindName("InspectControl") as ControlFolder.inspectControl;
     if (InspectControl2Del != null)
     {
         InspectControl2Del.exitControl();
     }
 }
Beispiel #3
0
        public void showInspectControl()
        {
            ControlFolder.inspectControl newInspectControl = new ControlFolder.inspectControl();

            newInspectControl.Name = "InspectControl";

            newInspectControl.Width  = 800;
            newInspectControl.Height = 660;

            newInspectControl.HorizontalAlignment = HorizontalAlignment.Center;
            newInspectControl.VerticalAlignment   = VerticalAlignment.Center;


            Grid1.Children.Add(newInspectControl);
            Grid1.RegisterName(newInspectControl.Name, newInspectControl);
            newInspectControl.SetValue(Grid.RowSpanProperty, 2);
        }