- PandaChuZero
- Posts: 11
- Joined:
Is clipping mask supported?
One more question,
Is clipping mask supported for organic or non linear shapes. And can the mask be altered at runtime for closing window effects and such.
For example as seen in this tutorial ?
https://www.youtube.com/watch?v=lcDFQ5cfJe4#t=115
Thanks!
Is clipping mask supported for organic or non linear shapes. And can the mask be altered at runtime for closing window effects and such.
For example as seen in this tutorial ?
https://www.youtube.com/watch?v=lcDFQ5cfJe4#t=115
Thanks!
-
sfernandez
Site Admin
- Posts: 3154
- Joined:
Re: Is clipping mask supported?
Hi,
You can apply any clip geometry to the Clip property of all UI elements. For example:
Resulting in the following render:
You can apply any clip geometry to the Clip property of all UI elements. For example:
Code: Select all
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Rectangle Width="400" Height="200" Fill="Red">
<Rectangle.Clip>
<RectangleGeometry Rect="10,10,180,180" RadiusX="20" RadiusY="20"/>
</Rectangle.Clip>
</Rectangle>
<Rectangle Width="400" Height="200" Fill="Green"
Clip="M300,0L320,80 400,100 320,120 300,200 280,120 200,100 280,80z"/>
</Grid>
Who is online
Users browsing this forum: No registered users and 2 guests