Beispiel #1
0
        /// <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 virtual Control GetEditingControl(PropertyEditorControlContext context)
        {
            var ctrl = new EnumEditorControl(context, m_names, m_displayNames, m_images);

            ctrl.DropDownStyle =
                (context == null || context.Descriptor.Converter == null) && TextEditEnabled
                ? ComboBoxStyle.DropDown
                : ComboBoxStyle.DropDownList;
            ctrl.MaxDropDownItems = MaxDropDownItems;
            Atf.Applications.SkinService.ApplyActiveSkin(ctrl);
            return(ctrl);
        }
Beispiel #2
0
 /// <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 virtual Control GetEditingControl(PropertyEditorControlContext context)
 {
     var ctrl = new EnumEditorControl(context, m_names, m_displayNames, m_images);
     ctrl.DropDownStyle =
         (context == null || context.Descriptor.Converter == null) && TextEditEnabled
         ? ComboBoxStyle.DropDown
         : ComboBoxStyle.DropDownList;
     ctrl.MaxDropDownItems = MaxDropDownItems;
     Atf.Applications.SkinService.ApplyActiveSkin(ctrl);
     return ctrl;
 }