Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WPF
  4. Silverlight Background color problem

Silverlight Background color problem

Scheduled Pinned Locked Moved WPF
helpcsharpasp-net
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Blikkies
    wrote on last edited by
    #1

    Hey all I added silverlight to an existing asp.net project and used asp:Silverlight control to embed the silverlight, everything works fine. I set color of my website body to LightGray but the silverlight control background is still showing white, I tried setting the control backcolor to Transparent but still no luck. Any help will be appresaited. Thanks.

    M 1 Reply Last reply
    0
    • B Blikkies

      Hey all I added silverlight to an existing asp.net project and used asp:Silverlight control to embed the silverlight, everything works fine. I set color of my website body to LightGray but the silverlight control background is still showing white, I tried setting the control backcolor to Transparent but still no luck. Any help will be appresaited. Thanks.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The background of the plugin object (what you see before any XAML is loaded) is set on the plugin object as described here: Background (Silverlight Plug-in Object)[^] Note the default is "white", and if you use transparent, I'm pretty sure you'll see black. Once there's Silverlight elements up, those elements will determine the background.

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      B 1 Reply Last reply
      0
      • M Mark Salsbery

        The background of the plugin object (what you see before any XAML is loaded) is set on the plugin object as described here: Background (Silverlight Plug-in Object)[^] Note the default is "white", and if you use transparent, I'm pretty sure you'll see black. Once there's Silverlight elements up, those elements will determine the background.

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        B Offline
        B Offline
        Blikkies
        wrote on last edited by
        #3

        Thanks for your reply, it helped me alote

        Mark Salsbery wrote:

        Note the default is "white", and if you use transparent, I'm pretty sure you'll see black.

        It did show a black background, i just set the windowless property to true, now it shows perfect. Thanks again.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups