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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!