summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Popup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.Popup.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.Popup.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.Popup.cs b/reference/csharp/snippets/Efl.Ui.Popup.cs
new file mode 100644
index 0000000..ec75e00
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.Popup.cs
@@ -0,0 +1,12 @@
1Efl.Ui.Popup popup = new Efl.Ui.Popup(parent);
2
3Efl.Ui.Button button = new Efl.Ui.Button(parent);
4
5button.SetText("Click to hide the popup");
6
7button.ClickedEvent += (sender, args) =>
8{
9 popup.SetVisible(false);
10};
11
12popup.SetContent(button);