[SOLVED] Grid.Background does not support LinearGradientBrush

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
TaterJuice
Posts: 147
Joined: Thu Mar 16, 2017 5:40 am
Contact:

[SOLVED] Grid.Background does not support LinearGradientBrush

Postby TaterJuice » Tue Mar 28, 2017 11:02 pm

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.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Grid.Background does not support LinearGradientBrush

Postby JS-Support @Userware » Wed Mar 29, 2017 8:29 am

Hi TaterJuice,

Thank you for reporting this issue.

We are going to fix it asap.

Regards,
JS-Support

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Fri Mar 31, 2017 10:37 am

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

TaterJuice
Posts: 147
Joined: Thu Mar 16, 2017 5:40 am
Contact:

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

Postby TaterJuice » Mon Apr 03, 2017 8:40 am

thank you!
/upvote


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 30 guests

 

 

cron