Theme Slider 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 Material Slider { get; set; }

Property Value

Type: Material
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.ThemeTests
Examples

1 unit tests call DeltaEngine.Scenes.Controls.Theme.Slider
[Test, CloseAfterFirstFrame]
public void SaveAndLoadModifiedTheme()
{
    var theme = new Theme();
    theme.Slider = new Material(ShaderFlags.Position2DColoredTextured, "DeltaEngineLogo")
    {
        DefaultColor = Color.Red
    };
    var stream = BinaryDataExtensions.SaveToMemoryStream(theme);
    var loadedTheme = (Theme)stream.CreateFromMemoryStream();
    Assert.IsTrue(AreMaterialsEqual(theme.Slider, loadedTheme.Slider));
}
See Also