Blog Content

    티스토리 뷰

    31.SilverLight3 - Brush : RadialGradientBrush

    반응형
    RadialGradientBrush
    - 원형 그라에이션


    MainPage.xaml

    [그림 31-1]


    <Grid x:Name="LayoutRoot" Background="White">

            <Rectangle Width="200" Height="200">

                <Rectangle.Fill>

                    <RadialGradientBrush SpreadMethod="Reflect"

                        GradientOrigin="0.5, 1">

                        <GradientStop Offset="0" Color="Yellow"></GradientStop>

                        <GradientStop Offset="0.5" Color="Blue"></GradientStop>

                        <GradientStop Offset="1" Color="Red"></GradientStop>

                    </RadialGradientBrush>                   

                </Rectangle.Fill>

            </Rectangle>

    </Grid>



    반응형

    Comments