Page 1 of 1

[SOLVED] Grid.Background does not support LinearGradientBrush

Posted: Tue Mar 28, 2017 11:02 pm
by TaterJuice
LinearGradientBrush does not work in a Grid.Background property, as shown here:

Code: Select all

<Grid x:Name="LayoutRoot">
    <Grid.Background>
        <LinearGradientBrush
            StartPoint="0,0"
            EndPoint="1,1">
            <GradientStop
                Color="Red"
                Offset="0.0" />
            <GradientStop
                Color="White"
                Offset="0.5" />
            <GradientStop
                Color="Blue"
                Offset="1.0" />
        </LinearGradientBrush>
    </Grid.Background>
</Grid>


It does, however, work in a Button.Background and Border.Background. I have not tested other controls.

Re: Grid.Background does not support LinearGradientBrush

Posted: Wed Mar 29, 2017 8:29 am
by JS-Support @Userware
Hi TaterJuice,

Thank you for reporting this issue.

We are going to fix it asap.

Regards,
JS-Support

Re: [SOLVED] Grid.Background does not support LinearGradientBrush

Posted: Fri Mar 31, 2017 10:37 am
by JS-Support @Userware
Hi,

The issue has now been fixed in Beta 11.1, available at:
http://forums.cshtml5.com/viewforum.php?f=6

The accuracy of the LinearGradientBrush - such as the 45 degree angle - has also been improved.

Thanks.
Regards,
JS-Support

Re: [SOLVED] Grid.Background does not support LinearGradientBrush

Posted: Mon Apr 03, 2017 8:40 am
by TaterJuice
thank you!
/upvote