示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ToolWindow"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public ToolWindow(ControlBase parent)
            : base(parent)
        {
            m_DragBar        = new Dragger(this);
            m_DragBar.Target = this;
            m_DragBar.SendToBack();

            Vertical = false;

            m_InnerPanel = new InnerContentControl(this);
            m_InnerPanel.SendToBack();
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Window"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public Window(ControlBase parent)
            : base(parent)
        {
            m_TitleBar                      = new WindowTitleBar(this);
            m_TitleBar.Height               = BaseUnit + 9;
            m_TitleBar.Title.TextColor      = Skin.Colors.Window.TitleInactive;
            m_TitleBar.CloseButton.Clicked += CloseButtonPressed;
            m_TitleBar.SendToBack();
            m_TitleBar.Dragged += OnDragged;

            m_DragBar = m_TitleBar;

            m_InnerPanel = new InnerContentControl(this);
            m_InnerPanel.SendToBack();
        }