/// <summary> 创建内容 </summary>
        public static TPageControl Create(List <UserControl> ctrls)
        {
            TPageControl tPageControl1 = new TPageControl();

            if (ctrls.Count == 0)
            {
                return(tPageControl1);
            }

            Action action = () =>
            {
                List <Panel> Panels = new List <Panel>();

                tPageControl1.ClearPage();

                foreach (var item in ctrls.Cast <System.Windows.Controls.Control>())
                {
                    WrapPanel rectangle = new WrapPanel();
                    rectangle.Width  = tPageControl1.Width;
                    rectangle.Height = tPageControl1.Height;
                    WrapPanel w = item.Parent as WrapPanel;
                    if (w != null)
                    {
                        w.Children.Clear();
                    }
                    rectangle.Children.Add(item);
                    Panels.Add(rectangle);
                }

                // Todo :设置默认选中页
                tPageControl1.AddPage(Panels, 0);
            };


            tPageControl1.Loaded += (object sender, System.Windows.RoutedEventArgs e) =>
            {
                action();
            };

            return(tPageControl1);
        }
        private static void RightWidthChange(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TPageControl pageControl = (TPageControl)sender;

            pageControl.RightGrid.Width = new GridLength(pageControl.RightWidth);
        }