PercentageBarTests ChangePercentileColors 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 ChangePercentileColors()
Examples

[Test, CloseAfterFirstFrame]
public void ChangePercentileColors()
{
    bar.Value = 50;
    var colors = new[] { Color.Black, Color.White };
    bar.PercentileColors = colors;
    Assert.AreEqual(colors, bar.PercentileColors);
    AssertColorsNearlyEqual(Color.Gray, bar.Color);
}
See Also