Hello everyone,
I’m trying to make a custom panel scrollable but nothing seems to work. I have a DynamicLayout I’m building and then passing as Content for a Panel. I tried the following:
- .BeginScrollable() & .EndScrollable on the DynamicLayout
- setting the DynamicLayout as Content for a Scrollable object
- using a DynamicScrollable where I’m passing each DynamicLayout Row as a Dynamic Object for the Scrollable (though I’m not sure if I did this one right).
Any suggestions would be appreciated.
for point 2 the code is:
Scrollable dynamicScrollable = new Scrollable();
dynamicScrollable.Padding = new Padding(16);
DynamicLayout MasterLayout = new DynamicLayout();
MasterLayout.AddSeparateRow(_prefix);
MasterLayout.AddSeparateRow(_suffix);
MasterLayout.AddSeparateRow(_tabs);
MasterLayout.AddSeparateRow(_tableOptions1);
MasterLayout.AddSeparateRow(TextDisplay);
MasterLayout.AddSeparateRow(B_Run);
MasterLayout.AddSpace();
dynamicScrollable.Content = MasterLayout;
Content = dynamicScrollable;