Grid Background using Gradient Brush

In this Blog we are going to learn how we can use the Gradient Brush to color the Grid Background. We are going to modify the Grid using the Gradient Brush. 


      <
Grid.Background>

            <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">

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

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

            </LinearGradientBrush>

        </Grid.Background>

       

 We are done you can run  the Application to view the Gradient effect .




Ebook Download
View all
Learn
View all