public static void ShowControlPanel(object panelOwner)
        {
            IBTabItem trg = panelOwner as IBTabItem;

            if (trg == null)
            {
                return;
            }

            IBWindow ibw = new IBWindow();

            ibw.InputBindings.AddRange(Application.Current.MainWindow.InputBindings);
            ibw.SetIBTabItem(trg.CloneOrCopy());
            ibw.Show();
        }
        /// <summary>
        /// .iblayoutファイルの一部からウインドウを一つ読み込み、復元します。
        /// </summary>
        /// <param name="sr"></param>
        private static void LoadWindow(StreamReader sr)
        {
            string data = sr.ReadLine();

            if (data != "{")
            {
                return;
            }

            IBWindow ibw = new IBWindow();

            do
            {
                data = sr.ReadLine();
                switch (data)
                {
                case "// Top":
                    ibw.Top = double.Parse(sr.ReadLine());
                    break;

                case "// Left":
                    ibw.Left = double.Parse(sr.ReadLine());
                    break;

                case "// Height":
                    ibw.Height = double.Parse(sr.ReadLine());
                    break;

                case "// Width":
                    ibw.Width = double.Parse(sr.ReadLine());
                    break;

                case "// IBWorkspace":
                    data = sr.ReadLine();
                    IBWorkspace temp = XamlReader.Parse(data) as IBWorkspace;
                    ibw.Content = temp;
                    break;

                default:
                    break;
                }
            }while (data != "}");

            ibw.Show();

            return;
        }