Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PropertyRow"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        /// <param name="prop">Property control associated with this row.</param>
        public PropertyRow(ControlBase parent, Property.PropertyBase prop)
            : base(parent)
        {
            Padding = new Padding(2, 2, 2, 2);

            m_Label           = new PropertyRowLabel(this);
            m_Label.Alignment = Alignment.Left | Alignment.Top;

            m_Property               = prop;
            m_Property.Parent        = this;
            m_Property.ValueChanged += OnValueChanged;
        }