Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0.0-Anniversary Edition Update 1
-
None
Description
<p>Visuals used inside VisualBrushes for OpacityMasks result in no visible output.</p>
<p> </p>
<p>Example structure:</p>
<p> <Rectangle><br />
<Rectangle.OpacityMask><br />
<VisualBrush><br />
<VisualBrush.Visual><br />
<Rectangle x:Name="RectMask" Fill="#FFFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"<br />
RadiusX="20" RadiusY="20" /><br />
</VisualBrush.Visual><br />
</VisualBrush><br />
</Rectangle.OpacityMask><br />
</Rectangle></p>
<p>Cause: for Opacity rendering step the graphics device has alpha channel blending enbled. This leads to an "empty" texture of the visual brush, and thus to no rendering of rectangle.</p>
<p> </p>
<p>Example structure:</p>
<p> <Rectangle><br />
<Rectangle.OpacityMask><br />
<VisualBrush><br />
<VisualBrush.Visual><br />
<Rectangle x:Name="RectMask" Fill="#FFFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"<br />
RadiusX="20" RadiusY="20" /><br />
</VisualBrush.Visual><br />
</VisualBrush><br />
</Rectangle.OpacityMask><br />
</Rectangle></p>
<p>Cause: for Opacity rendering step the graphics device has alpha channel blending enbled. This leads to an "empty" texture of the visual brush, and thus to no rendering of rectangle.</p>