Is there a way to achieve spotlight effect in wpf? http://www.youtube.com/watch?v=LgLw29c-qr8
I can understand OpacityMask will let me do this, but how can I render an image (or a background) to a Canvas but will be shown as white in all except a region where a button is rendered?
Here are a couple of images to explain my problem better,
frame1 showing the button at the left edge of the screen masking a portion of canvas background.
frame2 showing the button at the middle of the screen masking a different portion of canvas background.
actual canvas background that has got masked
I came up with the following solution,
but I do not feel this to be the correct approach. Kindly let me know a better approach if possible.