Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6373371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:21:22+00:00 2026-05-25T01:21:22+00:00

I just started learning Silverlight and I failed to use a transparent background for

  • 0

I just started learning Silverlight and I failed to use a transparent background for my Silverlight app in my asp.net page. I have searched on the internet and found that these two lines should fix it:

      <param name="background" value="Transparent" />
      <param name="pluginbackground" value="Transparent" />

but unfortunately it didn’t. Here is the way i embed the Silverlight app:

<form id="form1" runat="server" style="height:100%">
    <div id="silverlightControlHost">
        <object data="data:SilverlightApplication4," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/SilverlightApplication4.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="Transparent" />
          <param name="pluginbackground" value="Transparent" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
    </form>

and this is my Silverlight code:

<UserControl x:Class="SilverlightApplication4.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Loaded="UserControl_Loaded" BorderBrush="Transparent">


    <StackPanel x:Name="LayoutRoot" Height="147" Width="226" Background="Transparent">
        <StackPanel.Resources>
            <Storyboard x:Name="FirstStoryBoard">
                <DoubleAnimation Storyboard.TargetName="FirstEllipse"
                          Storyboard.TargetProperty="Width"
                          To="1" AutoReverse="True"
                          Duration="00:00:01" />
            </Storyboard>
        </StackPanel.Resources>

        <TextBlock Text="Hello, World!" HorizontalAlignment="Center" Name="txtMessege" />
        <Ellipse Name="FirstEllipse" Height="100" Width="200" Fill="SlateBlue" />
        <Button Name="FirstButton" Width="100" Content="Click" Click="FirstButton_Click" />
    </StackPanel>

</UserControl>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:21:23+00:00Added an answer on May 25, 2026 at 1:21 am

    Try with these parameters:

    <param name="background" value="Transparent" />
    <param name="windowless" value="True" />
    

    You might need to restart the browser too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just learning Blend/Silverlight/VS2010/.net/etc. I have a simple project that resides on a
Hi Just started learning c for uni (usually use objective c) and have run
I just started learning the very basics of c++, I have experience with vb.net
I have just started learning Erlang and am trying out some Project Euler problems
I just started learning Silverlight by walking through the labs posted on Channel9. When
I have just started trying to build my first wp7 app, and I am
I just started learning targets, and have followed all the instructions to create my
I just started learning SL. I have tried to resize all the elements inside
I just started learning Objective-C and OOP ... so I have very stupid question
I just started learning C++ couple of weeks ago. So now I have this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.