/// <inheritdoc /> protected override void DefineFeatureContextualToolbar(IToolbar toolbar) { this.radiusValueBox = toolbar.CreateValueTextBox(); this.radiusValueBox.Tooltip = "Top radius"; this.radiusValueBox.Title = "r="; this.radiusValueBox.StateChanged += (control, eventArgs) => { foreach (var component in this.Components) { this.ModifyComponent(component, TransitionSectionPluginPropertyNames.CircleRadius, this.radiusValueBox.Value); } }; this.widthValueBox = toolbar.CreateValueTextBox(); this.widthValueBox.Tooltip = "Bottom width"; this.widthValueBox.Title = "w="; this.widthValueBox.StateChanged += (control, eventArgs) => { foreach (var component in this.Components) { this.ModifyComponent(component, TransitionSectionPluginPropertyNames.RectangleWidth, this.widthValueBox.Value); } }; this.heightValueBox = toolbar.CreateValueTextBox(); this.heightValueBox.Tooltip = "Bottom height"; this.heightValueBox.Title = "h="; this.heightValueBox.StateChanged += (control, eventArgs) => { foreach (var component in this.Components) { this.ModifyComponent(component, TransitionSectionPluginPropertyNames.RectangleHeight, this.heightValueBox.Value); } }; }
/// <inheritdoc /> protected override void DefineFeatureContextualToolbar(IToolbar toolbar) { this.radiusValueBox = toolbar.CreateValueTextBox(TransitionSectionPlugin.DefaultCircleRadius); this.radiusValueBox.Tooltip = "Top radius"; this.radiusValueBox.Title = "r="; this.widthValueBox = toolbar.CreateValueTextBox(TransitionSectionPlugin.DefaultRectangleWidth); this.widthValueBox.Tooltip = "Bottom width"; this.widthValueBox.Title = "w="; this.heightValueBox = toolbar.CreateValueTextBox(TransitionSectionPlugin.DefaultRectangleHeight); this.heightValueBox.Tooltip = "Bottom height"; this.heightValueBox.Title = "h="; }