iOS Question CustomListView properties control

Discussion in 'iOS Questions' started by zak, Jun 20, 2017.

  1. zak

    zak Member Licensed User

    Might sound like a rookie question but how to control the Top, Left and Height of a CustomListView from the code. I mean :
    Dim clv1 CustomListView
    .
    .
    .
    clv1.Left gives an error
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why do you want to change it by code? Everything is simpler when it is done from the designer. If you do want to change its position at runtime then you need to change the base view position:
    Code:
    clv.GetBase.SetLayoutAnimated(...)
    Note that the position will be reset when the screen size changes so you need to either disable the "Handle resize event" in the layout file or change the position in the page resize event.
     
    zak likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice