public RibbonToggleButton(Ribbon ribbon, uint commandId) : base(ribbon, commandId) { AddPropertiesProvider(_booleanValuePropertyProvider = new BooleanValuePropertyProvider(ribbon, commandId)); AddPropertiesProvider(_enabledPropertiesProvider = new EnabledPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_keytipPropertiesProvider = new KeytipPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_labelPropertiesProvider = new LabelPropertiesProvider(ribbon, commandId)); AddPropertiesProvider(_labelDescriptionPropertiesProvider = new LabelDescriptionPropertiesProvider(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 SplitButtonGallery /// </summary> /// <param name="ribbon">Parent Ribbon control</param> /// <param name="commandId">Command id attached to this control</param> public RibbonSplitButtonGallery(Ribbon ribbon, uint commandId) : base(ribbon, commandId) { AddPropertiesProvider(_booleanValuePropertyProvider = new BooleanValuePropertyProvider(ribbon, commandId)); AddPropertiesProvider(_galleryPropertiesProvider = new GalleryPropertiesProvider(ribbon, commandId, this)); 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)); }