iOS Question Page1.RootPanel.Color not working [resolved]

Discussion in 'iOS Questions' started by stingrae, Jul 10, 2019.

  1. stingrae

    stingrae Member Licensed User

    This is probably something really, really simple ... but I am at a loss.

    I can change the colour of the page in the designer, but not the code.

    For the example below, why is my page background not changing to red?

    Code:
    Private Sub Application_Start (Nav As NavigationController)
     
        NavControl = Nav
     
        Page1.Initialize(
    "Page1")
        Page1.Title = 
    "Arnold by Stingrae"
        Page1.RootPanel.Color = 
    Colors.Red
        Page1.RootPanel.LoadLayout(
    "lytMain")
        NavControl.ShowPage(Page1)

        pagLogIn.Initialize(
    "pagLogIn")
        pagLogIn.Title = Page1.Title
        pagLogIn.RootPanel.Color = 
    Colors.Red
        pagLogIn.RootPanel.LoadLayout(
    "lytLogIn")
        
        NavControl.ShowPage(pagLogIn)
          
    End Sub
     
  2. sorex

    sorex Expert Licensed User

    do it after the load layout, maybe it's (re)set during the load layout aswell.
     
    stingrae likes this.
  3. stingrae

    stingrae Member Licensed User

    that worked! thank you so much @sorex !
     
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