//The constructor associates the control with the smart tag list. public ButtonSwitchActionList(IComponent component) : base(component) { this.colUserControl = component as ButtonSwitch; this.designerActionUISvc = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService; }
public ButtonSwitchArray() { InitializeComponent(); // 设计器中自动配置了Name会导致在设计时获取控件名称失败 this.Name = ""; _controls = new List <ButtonSwitch>(); _model = new ButtonSwitch(); Dimension = 1; ControlWidth = 80; ControlHeight = 30; Direction = true; flpanel.AutoScroll = true; flpanel.FlowDirection = FlowDirection.TopDown; flpanel.WrapContents = false; }
internal void SetToggleSwitch(ButtonSwitch toggleSwitch) { _toggleSwitch = toggleSwitch; }