Beantwortet Hintergrund transparent schalten

  • Donnerstag, 6. September 2012 19:18
     
      Enthält Code

    Hallo,

    Ich möchte den Hintergrund meiner Silverlightapp auf einer Webseite gern transparent haben. Momentan sieht es noch so aus:

    Das weiße um die Uhr herum soll auch grau werden. Mein XAML-Code:

    <UserControl x:Class="Koopakiller.SilverlightClock.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"
    	 Height="243" Width="243"
    	>
        <UserControl.Background>
            <RadialGradientBrush>
                <GradientStop Color="Black" Offset="0.99"/>
                <GradientStop Color="Transparent" Offset="1"/>
            </RadialGradientBrush>
        </UserControl.Background>
    Und mein Code zum einbinden in die HTML-Seite:
    <div id="silverlightcontainer">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="243" height="243">
            <param name="source" value="silverlight/SilverlightClock.xap"/>
            <param name="minRuntimeVersion" value="2.0.31005.0" />
            <param name="autoUpgrade" value="true" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Microsoft Silverlight beziehen" style="border-style: none;"/>         </a>     </object> </div>
    Was mache ich Falsch? Mit
    <param name="background" value="transparent" />

    klappte es auch nicht :(



    Koopakiller - http://koopakiller.ko.ohost.de/

Alle Antworten