DropdownList IsEnabled Property Delta Engine Documentation

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

public override bool IsEnabled { get; set; }

Property Value

Type: Boolean
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.DropdownListTests
Examples

1 unit tests call DeltaEngine.Scenes.Controls.DropdownList.IsEnabled
[Test, CloseAfterFirstFrame]
public void WhenDisabledSelectionBoxIsHidden()
{
    if (mouse == null)
        return; //ncrunch: no coverage
    Click(new Vector2D(0.5f, 0.31f));
    dropdownList.IsEnabled = false;
    Assert.IsFalse(dropdownList.SelectBox.IsVisible);
    foreach (FontText text in dropdownList.SelectBox.texts)
        Assert.IsFalse(text.IsVisible);
}
See Also