summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Scroller.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.Scroller.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.Scroller.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.Scroller.cs b/reference/csharp/snippets/Efl.Ui.Scroller.cs
new file mode 100644
index 0000000..91f30d5
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.Scroller.cs
@@ -0,0 +1,10 @@
1Efl.Ui.Scroller scroller = new Efl.Ui.Scroller(parent);
2
3// Create a large image to put it inside the scroller
4Efl.Ui.Image image = new Efl.Ui.Image(scroller);
5
6image.SetHintSizeMin(new Eina.Size2D(1000, 1000));
7image.SetFile(image_path + "image.png");
8image.Load();
9
10scroller.SetContent(image);