Reputation: 429
I need to put a image as background of whole page, and put over it a rectangle with a transparent circle hole. The example result is bellow.
Update
I found some solutions using Geometry.Combine, but this does not exists in WP8. With this aproach I could draw a rectangle and a circle and combine both using GeometryCombineMode.Exclude. But this method seems to not exist in WP8. How create something that can I achieve a similar result to Geometry.Combine to create a hole inside a element?
Upvotes: 0
Views: 1483
Reputation: 12019
You should look into the Path
element and learn the mini-language for the path data. This is a rough example:
<Path x:Name="path" Data="M0,100 v-50 h100 a10,10,0,1,0,50,0 h100 v50 z" Fill="Gray" />
Basically:
Upvotes: 2