summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Popup.cs
blob: ec75e0061469843575911862af7b0aecf79a9098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Efl.Ui.Popup popup = new Efl.Ui.Popup(parent);

Efl.Ui.Button button = new Efl.Ui.Button(parent);

button.SetText("Click to hide the popup");

button.ClickedEvent += (sender, args) =>
{
    popup.SetVisible(false);
};

popup.SetContent(button);