/// <summary> /// Gets a control to edit the given property</summary> /// <param name="context">Context for property editing control</param> /// <returns>Control to edit the given context</returns> public Control GetEditingControl(PropertyEditorControlContext context) { NumericMatrixControl result = new NumericMatrixControl(m_numericType, m_rows, m_columns, context); // Controls[0] is the 1st TextBox for 1st matrix element // result.Height = result.Controls[0].Font.Height * m_rows + result.Margin.Top + result.Margin.Bottom + 2; result.ScaleFactor = m_scaleFactor; return result; }
/// <summary> /// Gets a control to edit the given property</summary> /// <param name="context">Context for property editing control</param> /// <returns>Control to edit the given context</returns> public Control GetEditingControl(PropertyEditorControlContext context) { NumericMatrixControl result = new NumericMatrixControl(m_numericType, m_rows, m_columns, context); // Controls[0] is the 1st TextBox for 1st matrix element // result.Height = result.Controls[0].Font.Height * m_rows + result.Margin.Top + result.Margin.Bottom + 2; result.ScaleFactor = m_scaleFactor; SkinService.ApplyActiveSkin(result); return(result); }