[Mono-bugs] [Bug 346018] Stretch UniformToFill doesn't work with brushes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 4 16:12:29 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=346018

User spouliot at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346018#c1





--- Comment #1 from Sebastien Pouliot <spouliot at novell.com>  2007-12-04 14:12:29 MST ---
<Canvas xmlns="http://schemas.microsoft.com/client/2007">
        <Rectangle Width="200" Height="100">
        <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
                        <GradientStop Color="Red" Offset="0.0" />
                        <GradientStop Color="Green" Offset="0.5" />
                        <GradientStop Color="Blue" Offset="1.0" />
                </LinearGradientBrush>
        </Rectangle.Fill>
        </Rectangle> 

        <!-- nothing is drawn if None is supplied -->
        <Rectangle Canvas.Left="220" Width="200" Height="100" Stretch="None">
        <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
                        <GradientStop Color="Red" Offset="0.0" />
                        <GradientStop Color="Green" Offset="0.5" />
                        <GradientStop Color="Blue" Offset="1.0" />
                </LinearGradientBrush>
        </Rectangle.Fill>
        </Rectangle> 

        <Rectangle Canvas.Top="120" Width="200" Height="100" Stretch="Uniform">
        <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
                        <GradientStop Color="Red" Offset="0.0" />
                        <GradientStop Color="Green" Offset="0.5" />
                        <GradientStop Color="Blue" Offset="1.0" />
                </LinearGradientBrush>
        </Rectangle.Fill>
        </Rectangle> 

        <Rectangle Canvas.Top="120" Canvas.Left="220" Width="200" Height="100"
Stretch="UniformToFill">
        <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
                        <GradientStop Color="Red" Offset="0.0" />
                        <GradientStop Color="Green" Offset="0.5" />
                        <GradientStop Color="Blue" Offset="1.0" />
                </LinearGradientBrush>
        </Rectangle.Fill>
        </Rectangle> 
</Canvas> 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list