aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-01-23 08:38:06 -0800
committerapache <apache@e5-web1.enlightenment.org>2019-01-23 08:38:06 -0800
commite6ec969e5024bf52e9aa516f4f02b7938b754951 (patch)
tree67500ee9dd10ba65a06b4b1a6f699c829c862756
parentWiki page focus.md changed with summary [Adapt to latest EFL# syntax] by Xavi... (diff)
downloadwww-content-e6ec969e5024bf52e9aa516f4f02b7938b754951.tar.gz
Wiki page sizing.md changed with summary [Adapt to latest EFL# syntax] by Xavi Artigas
-rw-r--r--pages/develop/guides/csharp/ui/sizing.md.txt18
1 files changed, 8 insertions, 10 deletions
diff --git a/pages/develop/guides/csharp/ui/sizing.md.txt b/pages/develop/guides/csharp/ui/sizing.md.txt
index b4a376e2c..aaf246b01 100644
--- a/pages/develop/guides/csharp/ui/sizing.md.txt
+++ b/pages/develop/guides/csharp/ui/sizing.md.txt
@@ -23,11 +23,10 @@ You can find an usage example in the [EFL examples repository](https://git.enlig
When a widget's **minimum** size is defined with `SetHintMin()`, resizing the rest of the UI will not shrink the widget below the size you set. You can use it to create elements which are bigger than normal, as well as prevent the UI from becoming too small:
```csharp
-new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
- ebutton.SetText("Big button");
- ebutton.SetHintMin(new eina.Size2D(100,100));
- box.DoPack(ebutton);
-});
+button = new Efl.Ui.Button(win);
+button.SetText("Big button");
+button.SetHintMin(new Eina.Size2D(100,100));
+box.DoPack(button);
```
## Setting a Widget's Maximum Size ##
@@ -35,11 +34,10 @@ new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
When a widget's **maximum** size is defined with `SetHintMax()`, resizing the rest of the UI will not expand the widget beyond the size you set. Use it to create elements that are smaller than normal or that will not expand past a given point when the UI grows.
```csharp
-new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
- ebutton.SetText("Small");
- ebutton.SetHintMax(new eina.Size2D(50,50));
- box.DoPack(ebutton);
-});
+button = new Efl.Ui.Button(win);
+button.SetText("Small");
+button.SetHintMax(new Eina.Size2D(50,50));
+box.DoPack(button);
```
## Further Reading ##