public PerformancePannel(string name)
			: base(FlowDirection.TopToBottom)
		{
			this.Name = name;
			Margin = new BorderDouble(5);
			Padding = new BorderDouble(3);
			VAnchor |= VAnchor.ParentTop;

			if (pannels == null)
			{
				pannels = new PerformanceDisplayWidget();
				pannels.Selectable = false;
				pannels.HAnchor |= HAnchor.ParentLeft;
				pannels.VAnchor |= VAnchor.ParentTop;
				pannels.Visible = false; // start out not visible
										 //pannels.Visible = false; // start out not visible

				if (true) // only add this when doing testing
				{
					UiThread.RunOnIdle(() =>
					{
						if (PerformanceTimer.GetParentWindowFunction != null)
						{
							GuiWidget parentWindow = PerformanceTimer.GetParentWindowFunction();
							parentWindow.AddChild(pannels);
#if DEBUG
							parentWindow.KeyDown += ParentWindow_KeyDown;
							parentWindow.MouseDownInBounds += ParentWindow_MouseDown;
#endif
						}
					});
				}
			}

			// add in the column title
			{
				TextWidget titleWidget = new TextWidget(name, pointSize: 14)
				{
					BackgroundColor = new RGBA_Bytes(),
					TextColor = new RGBA_Bytes(20, 120, 20),
				};
				titleWidget.Printer.DrawFromHintedCache = true;
				AddChild(titleWidget);
			}

			AddChild(topToBottom);

			pannels.AddChild(this);

			BackgroundColor = new RGBA_Bytes(RGBA_Bytes.White, 180);
		}
        public PerformancePannel(string name)
            : base(FlowDirection.TopToBottom)
        {
            this.Name = name;
            Margin    = new BorderDouble(5);
            Padding   = new BorderDouble(3);
            VAnchor  |= VAnchor.ParentTop;

            if (pannels == null)
            {
                pannels            = new PerformanceDisplayWidget();
                pannels.Selectable = false;
                pannels.HAnchor   |= HAnchor.ParentLeft;
                pannels.VAnchor   |= VAnchor.ParentTop;
                pannels.Visible    = false;              // start out not visible
                //pannels.Visible = false; // start out not visible

                if (true)                 // only add this when doing testing
                {
                    UiThread.RunOnIdle(() =>
                    {
                        if (PerformanceTimer.GetParentWindowFunction != null)
                        {
                            GuiWidget parentWindow = PerformanceTimer.GetParentWindowFunction();
                            parentWindow.AddChild(pannels);
#if DEBUG
                            parentWindow.KeyDown           += ParentWindow_KeyDown;
                            parentWindow.MouseDownInBounds += ParentWindow_MouseDown;
#endif
                        }
                    });
                }
            }

            // add in the column title
            {
                TextWidget titleWidget = new TextWidget(name, pointSize: 14)
                {
                    BackgroundColor = new RGBA_Bytes(),
                    TextColor       = new RGBA_Bytes(20, 120, 20),
                };
                titleWidget.Printer.DrawFromHintedCache = true;
                AddChild(titleWidget);
            }

            AddChild(topToBottom);

            pannels.AddChild(this);

            BackgroundColor = new RGBA_Bytes(RGBA_Bytes.White, 180);
        }