public RibbonSpinner(Ribbon ribbon, uint commandId) : base(ribbon, commandId) { AddPropertiesProvider(_spinnerPropertiesProvider = new SpinnerPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_representativeStringPropertiesProvider = new RepresentativeStringPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_enabledPropertiesProvider = new EnabledPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_keytipPropertiesProvider = new KeytipPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_labelPropertiesProvider = new LabelPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_imagePropertiesProvider = new ImagePropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_tooltipPropertiesProvider = new TooltipPropertiesProvider(ribbon, commandId)); AddEventsProvider(_executeEventsProvider = new ExecuteEventsProvider(this)); }
/// <summary> /// Initializes a new instance of the Ribbon ComboBox /// </summary> /// <param name="ribbon">Parent Ribbon control</param> /// <param name="commandId">Command id attached to this control</param> public RibbonComboBox(Ribbon ribbon, uint commandId) : base(ribbon, commandId) { AddPropertiesProvider(_galleryPropertiesProvider = new GalleryPropertiesProvider(ribbon, commandId, this)); AddPropertiesProvider(_stringValuePropertiesProvider = new StringValuePropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_representativeStringPropertiesProvider = new RepresentativeStringPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_enabledPropertiesProvider = new EnabledPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_keytipPropertiesProvider = new KeytipPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_labelPropertiesProvider = new LabelPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_imagePropertiesProvider = new ImagePropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_tooltipPropertiesProvider = new TooltipPropertiesProvider(ribbon, commandId)); AddEventsProvider(_executeEventsProvider = new ExecuteEventsProvider(this)); AddEventsProvider(_previewEventsProvider = new PreviewEventsProvider(this)); }