iOS Question SCROLLVIEW

kreativa

Member
Licensed User
Longtime User
Hi everybody,
just a question.
How i can do to use scrollview directly with the designer (not adding panel in code behind).
I try to create scrollview in the deigner , add some button and textfield but they don't scroll!

Help!

Thanks
 

klaus

Expert
Licensed User
Longtime User
You can add the ScrollView to a layout in the Designer.
But you cannot directly add Views onto the internal Panel of the ScrollView.
You can define another layout for the internal Panel of the ScrollView in the Designer, but you must load this layout in the code with ScrollView1.LoadLayout("PanelLayoutName").
Don't forget to set the height and width of the internal ScrollView Panel to the correct value with ScrollView1.ContentHeight = yyy and ScrollView 1.ContentWidth = xxx.
 
Upvote 0

kreativa

Member
Licensed User
Longtime User
Great!!
Thanks!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…