/// <summary>
        /// Initializes a new instance of the <see cref="LabelProperty"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public LabelProperty(Gwen.Controls.ControlBase parent) : base(parent)
        {
            m_text = new Gwen.Controls.Label(this);
            var marg = m_text.Margin;

            marg.Left     = 2;
            m_text.Margin = marg;
            m_text.Dock   = Pos.Fill;
            m_text.ShouldDrawBackground = false;
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LabelProperty"/> class.
 /// </summary>
 /// <param name="parent">Parent control.</param>
 public LabelProperty(Gwen.Controls.ControlBase parent) : base(parent)
 {
     m_text = new Gwen.Controls.Label(this)
     {
         Dock = Dock.Fill,
         ShouldDrawBackground = false,
         AutoSizeToContents   = true,
         Alignment            = Pos.CenterV | Pos.Left,
         TextPadding          = new Padding(2, 2, 2, 2),
     };
     AutoSizeToContents = true;
 }