Bug 568562 - FillRule="EvenOdd" seems not to work
Summary: FillRule="EvenOdd" seems not to work
Status: REOPENED
Alias: None
Product: Moonlight
Classification: Mono
Component: xaml (show other bugs)
Version: unspecified
Hardware: x86-64 openSUSE 11.3
: P5 - None : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 13:38 UTC by Werner Bochtler
Modified: 2011-08-22 08:57 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
demo application and screenshots (118.92 KB, application/octet-stream)
2011-02-23 11:20 UTC, Werner Bochtler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Bochtler 2010-01-06 13:38:59 UTC
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

FillRule="EvenOdd" seems not to work.



Reproducible: Always

Steps to Reproduce:
Try the example given below:

<Grid x:Name="LayoutRoot">
    <Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF">
        <Path.Data>
            <GeometryGroup FillRule="EvenOdd">
                <EllipseGeometry RadiusX="50" RadiusY="50" Center="175,175" />
                <EllipseGeometry RadiusX="70" RadiusY="70" Center="175,175" />
                <EllipseGeometry RadiusX="100" RadiusY="100" Center="175,175" />
                <EllipseGeometry RadiusX="120" RadiusY="120" Center="175,175" />
             </GeometryGroup>
         </Path.Data>
    </Path>
    <Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF">
        <Path.Data>
            <GeometryGroup FillRule="Nonzero">
                <EllipseGeometry RadiusX="50" RadiusY="50" Center="475,175" />
                <EllipseGeometry RadiusX="70" RadiusY="70" Center="475,175" />
                <EllipseGeometry RadiusX="100" RadiusY="100" Center="475,175" />
                <EllipseGeometry RadiusX="120" RadiusY="120" Center="475,175" />
            </GeometryGroup>
        </Path.Data>
    </Path>
</Grid>
Actual Results:  
FillRule="EvenOdd" and FillRule="Nonzero" produce the same output.

Expected Results:  
Differnt output
Comment 1 Werner Bochtler 2010-01-07 08:14:05 UTC
The previous example works. Please use the following XAML to reproduce the problem:

<UserControl x:Class="EvenOdd.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    
  <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Height="160">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="300"/>
        </Grid.ColumnDefinitions>

      <Border Grid.Column="0" BorderThickness="1" BorderBrush="Black" CornerRadius="3">
            <Border.Clip>
                <GeometryGroup FillRule="EvenOdd">
                    <RectangleGeometry x:Name="FullRect" Rect="0,0,300,200"/>
                    <RectangleGeometry x:Name="HeaderRect" Rect="6,0,100,100"/>
                </GeometryGroup>
            </Border.Clip>
        </Border>

        <Border Grid.Column="2" BorderThickness="1" BorderBrush="Black" CornerRadius="3">
            <Border.Clip>
                <GeometryGroup FillRule="Nonzero">
                    <RectangleGeometry x:Name="FullRect2" Rect="0,0,300,200"/>
                    <RectangleGeometry x:Name="HeaderRect2" Rect="6,0,100,100"/>
                </GeometryGroup>
            </Border.Clip>
        </Border>
    </Grid>
</UserControl>
Comment 2 Jackson Harper 2010-02-25 19:38:43 UTC
I get identical results on Moonlight and Silverlight now.  Closing this bug.
Comment 3 Jackson Harper 2010-02-25 19:39:15 UTC
I get identical results on Moonlight and Silverlight now.  Closing this bug.
Comment 4 Werner Bochtler 2011-02-23 11:20:06 UTC
Created attachment 415732 [details]
demo application and screenshots

The problem again (still?) occurs using moonlight 3.99.01.
Please find attached a demo application and two screenshots.
Comment 5 Werner Bochtler 2011-02-23 12:29:08 UTC
Changed status from resolved to reopened.