silverlight styles

Posted by Piyush on Stack Overflow See other posts from Stack Overflow or by Piyush
Published on 2010-04-15T11:34:22Z Indexed on 2010/04/15 11:43 UTC
Read the original article Hit count: 359

<navigation:Page.Resources>
<Style x:Key="PageBackground" TargetType="Grid">
        <Setter Property="Background">
            <Setter.Value>

                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                    <GradientStop Color="White" Offset="1"/>
                    <GradientStop Color="Silver"/>
                </LinearGradientBrush>


                <Path x:Name="shinePath" Data="M0,0 L0,300 C-5.5,306.5 40,68 215,0 z" Stretch="Fill" Opacity="0.1">
                    <Path.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Pad">
                            <GradientStop Color="Black" Offset="0"/>
                            <GradientStop Color="#00FFFFFF" Offset="0.871"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
            </Setter.Value>
        </Setter>
    </Style>
       </navigation:Page.Resources>

error- property 'Value' is set more then once

© Stack Overflow or respective owner

Related posts about silverlight-3.0

Related posts about Silverlight