locked
Button in modal popup inherits background color of splash screen

    Question

  • Hi, I am having an issue with the modal popup window's action button, it's background color is the same as the background color for the splash screen which I specify in the manifest file. If I change the splash screen background to a different color and run the app I see that the button in modal popup gets that same background color. Does anyone have the same problem?

    Thanks.

    Bellow is the configuration for the splash screen color:

    <Applications>
      <Application Id="App"
          Executable="$targetnametoken$.exe"
          EntryPoint="MyApp.App">
        <m2:VisualElements
           DisplayName="MyApp"
           Square150x150Logo="Assets\Logo.png"
           Square30x30Logo="Assets\SmallLogo.png"
           Description="MyApp"
           ForegroundText="dark"
           BackgroundColor="#666666" >
          <m2:SplashScreen Image="Assets\SplashScreen.png" />
        </m2:VisualElements>
      </Application>
    </Applications>
    <Capabilities>
      <Capability Name="internetClient" />
    </Capabilities>
    </Package>

     
    Sunday, March 2, 2014 12:17 AM

Answers

  • I solve this issue. I had to specify another background color in the m2:splashscreen node itself. This will be specific to the splash screen.

    <Applications>
      <Application Id="App"
          Executable="$targetnametoken$.exe"
          EntryPoint="MyApp.App">
        <m2:VisualElements
           DisplayName="MyApp"
           Square150x150Logo="Assets\Logo.png"
           Square30x30Logo="Assets\SmallLogo.png"
           Description="MyApp"
           ForegroundText="dark"
           BackgroundColor="#666666" >
          <m2:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#ffa500" />
        </m2:VisualElements>
      </Application>
    </Applications>

    • Marked as answer by ethx Sunday, March 2, 2014 1:05 AM
    Sunday, March 2, 2014 1:05 AM