protected virtual LightVisualButtonElement CreateClearButton() { LightVisualButtonElement visualButtonElement = new LightVisualButtonElement(); visualButtonElement.Padding = new Padding(4, 2, 4, 0); return(visualButtonElement); }
protected override void CreateChildElements() { base.CreateChildElements(); this.searchTextBox = this.CreateSearchTextBox(); this.Children.Add((RadElement)this.searchTextBox); this.waitingBar = this.CreateWaitingBarElement(); this.Children.Add((RadElement)this.waitingBar); this.findPreviousButton = this.CreateFindPreviousButton(); this.Children.Add((RadElement)this.findPreviousButton); this.findNextButton = this.CreateFindNextButton(); this.Children.Add((RadElement)this.findNextButton); this.matchCaseButton = this.CreateMatchCaseButton(); this.chooseColumnsMenuItem = this.CreateChooseColumnsMenuItem(); this.matchCaseMenuItem = this.CreateMatchCaseMenuItem(); this.searchFromCurrentPositionMenuItem = this.CreateSearchFromCurrentPositionMenuItem(); this.optionsButton = this.CreateOptionsButton(); this.Children.Add((RadElement)this.optionsButton); this.buttonsStack = new StackLayoutPanel(); this.buttonsStack.Margin = new Padding(0, 1, 0, 2); this.Children.Add((RadElement)this.buttonsStack); this.closeButton = this.CreateCloseButton(); this.closeButton.Class = "SearchRowCloseButton"; this.closeButton.Click += new EventHandler(this.CloseButton_Click); this.buttonsStack.Children.Add((RadElement)this.closeButton); }
protected virtual LightVisualButtonElement CreateCloseButton() { LightVisualButtonElement visualButtonElement = new LightVisualButtonElement(); visualButtonElement.Margin = new Padding(3, 0, 3, 0); visualButtonElement.Padding = new Padding(5, 0, 5, 0); return(visualButtonElement); }
protected override void CreateChildElements() { this.fillPrimitive = new FillPrimitive(); this.fillPrimitive.Class = "TextBoxFill"; this.Children.Add((RadElement)this.fillPrimitive); this.borderPrimitive = new BorderPrimitive(); this.borderPrimitive.Class = "TextBoxBorder"; this.Children.Add((RadElement)this.borderPrimitive); this.buttonsStack = new StackLayoutPanel(); this.Children.Add((RadElement)this.buttonsStack); this.clearButton = this.CreateClearButton(); this.clearButton.Class = "TextBoxClearButton"; this.clearButton.Click += new EventHandler(this.ClearButton_Click); this.buttonsStack.Children.Add((RadElement)this.clearButton); }