Home

LINQPad.Controls.SelectBox - selectedIndex doesn't work


I have experienced that LINQPad.Controls.SelectBox doesn't respect parameter selectedIndex

var items = new[] {"one", "two", "three"};
var selIdx = 1;

var selBox = new LINQPad.Controls.SelectBox(LINQPad.Controls.SelectBoxKind.DropDown, items, selIdx, null);
selBox.Dump();
SelectBox always shows first item "one" regardless of selectedIndex parameter set;

Comments

Sign In or Register to comment.