bonjour ,
j'ai créé un composant silverlight pour qu'il soit integré dans un site web par la suite .
mon composant s'affiche bien sur le site cible mais l'arrier plan de mon composant ne prent pas automatiquement la couleur de fond de site .
j'ai pensé à la propriété Background="Transparent" mais sans resultat .
avez vous une solution hors HTML de mon site cible , j'aime que ça soit géré dans le pluguin Silverlight (dans de code XAML par exemple ).
voici mon code :
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
 
<UserControl x:Class="SilverlightApplication11.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" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    FontFamily="Portable User Interface" d:DesignHeight="50" d:DesignWidth="608" Background="Transparent">
 
    <Grid x:Name="LayoutRoot" Background="Transparent"  >
 
        <Grid.RowDefinitions>
 
            <RowDefinition Height="50" />
 
        </Grid.RowDefinitions>
 
 
 
        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="0" Background="Transparent">
 
                 <Canvas x:Name="step_4" Width="90" Height="50" Canvas.Left="0" Canvas.Top="0" Background="Transparent">
 
                <Path x:Name="Path_Step_4" Width="172" Height="50" Canvas.Left="-45" Canvas.Top="0" Stretch="Fill" StrokeThickness="0" StrokeLineJoin="Round" Fill="Magenta" Data="F1 M 3.05176e-005,0L 17,32L 3.05176e-005,64L 160,64L 177,32L 160,0L 0,0" StrokeDashCap="Square" StrokeStartLineCap="Square"  />
                <sdk:Label Canvas.Left="-23" Canvas.Top="10" Height="29" Name="label_Step_4" Width="135" Content="Négociation" HorizontalContentAlignment="Center" FontStretch="SemiCondensed" FontWeight="ExtraBold" FontStyle="Italic" FontFamily="Verdana" Foreground="White" FontSize="20" />
            </Canvas>
        </StackPanel>
 
    </Grid>
</UserControl>