SelectBoxTests RenderGrowingSelectBox Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RenderGrowingSelectBox()
Examples

[Test]
public void RenderGrowingSelectBox()
{
    selectBox.Values = new List<object> { "value 1", "value 2", "value 3", "value 4" };
    selectBox.Start<Grow>();
    var text = new FontText(Font.Default, "", new Rectangle(0.4f, 0.7f, 0.2f, 0.1f));
    selectBox.LineClicked += lineNo => text.Text = selectBox.Values[lineNo] + " clicked";
}
See Also