protected override void CreateChildElements() { base.CreateChildElements(); this.textBox = new RadDropDownTextBoxElement(); this.Children.Add((RadElement)this.textBox); int num = (int)this.BindProperty(RadItem.TextProperty, (RadObject)this.textBox, RadItem.TextProperty, PropertyBindingOptions.TwoWay); this.WireEvents(); }
protected override void CreateChildElements() { base.CreateChildElements(); this.textBox = new RadDropDownTextBoxElement(); this.textBox.TextBoxItem.Alignment = System.Drawing.ContentAlignment.MiddleLeft; this.textBox.Text = ""; this.Children.Add(this.textBox); this.TextAlignment = this.textBox.TextBoxItem.Alignment; this.BackColor = this.textBox.BackColor; this.DrawFill = true; this.DrawText = false; this.NumberOfColors = 1; this.BindProperty(RadItem.TextProperty, this.textBox, RadItem.TextProperty, PropertyBindingOptions.TwoWay); this.WireEvents(); }