InteractiveButtonTests DrawLoadedButton 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 DrawLoadedButton()
Examples

[Test]
public void DrawLoadedButton()
{
    button.Text = "Original";
    var stream = BinaryDataExtensions.SaveToMemoryStream(button);
    var loadedButton = (InteractiveButton)stream.CreateFromMemoryStream();
    loadedButton.Text = "Loaded";
    loadedButton.DrawArea = loadedButton.DrawArea.Move(0.0f, 0.15f);
}
See Also