Mask on rectangle
Hey, I want to make something like mask on rectangle: When button is out of rectangle isnt rendered, is like behind the background. Is here any idea?
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Mask on rectangle
You can set the property ClipToBounds to true in a parent container:
Is this what you are looking for?
Code: Select all
<Grid Width="200" Height="200" ClipToBounds="True">
<Button Content="Button"/>
</Button>
Re: Mask on rectangle
Yes, Thanks :)You can set the property ClipToBounds to true in a parent container:Is this what you are looking for?Code: Select all<Grid Width="200" Height="200" ClipToBounds="True"> <Button Content="Button"/> </Button>
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Mask on rectangle
Nice, I'm marking this as closed.
Who is online
Users browsing this forum: Semrush [Bot] and 95 guests