AutoArrangingMenuTests ShowMenuWithThreeTextButtons Method Delta Engine Documentation

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

public void ShowMenuWithThreeTextButtons()
Examples

[Test]
public void ShowMenuWithThreeTextButtons()
{
    menu.AddMenuOption(new Theme(), () => { text.Text = "Clicked Top Button"; }, "Top Button");
    menu.AddMenuOption(new Theme(), () => { text.Text = "Clicked Middle Button"; },
        "Middle Button");
    menu.AddMenuOption(new Theme(), () => { text.Text = "Clicked Bottom Button"; },
        "Bottom Button");
    menu.Show();
}
See Also