Enable scrolling sample.
This commit is contained in:
Родитель
18c32f9b8d
Коммит
a281a0ace5
|
@ -63,7 +63,7 @@ namespace Samples
|
|||
AddSample (null, "Labels", typeof(Labels));
|
||||
AddSample (null, "List View", typeof(ListView1));
|
||||
AddSample (null, "Notebook", typeof(NotebookSample));
|
||||
// AddSample (null, "Scroll View", typeof(ScrollWindowSample));
|
||||
AddSample (null, "Scroll View", typeof(ScrollWindowSample));
|
||||
AddSample (null, "Tables", typeof(Tables));
|
||||
AddSample (null, "Text Entry", typeof(TextEntries));
|
||||
AddSample (null, "Windows", typeof(Windows));
|
||||
|
|
|
@ -36,6 +36,12 @@ namespace Samples
|
|||
VBox b1 = new VBox ();
|
||||
for (int n=0; n<30; n++)
|
||||
b1.PackStart (new Label ("Line " + n), BoxMode.None);
|
||||
Button u = new Button ("Click to remove");
|
||||
u.Clicked += delegate {
|
||||
b1.Remove (u);
|
||||
};
|
||||
b1.PackStart (u);
|
||||
|
||||
v1.Content = b1;
|
||||
v1.VerticalScrollPolicy = ScrollPolicy.Always;
|
||||
PackStart (v1, BoxMode.FillAndExpand);
|
||||
|
|
Загрузка…
Ссылка в новой задаче