Equivalency to TransparencyKey in WPF?

B

bradygaster

When using a windows forms approach I can accomplish my goal - a
portion of a window completely transparent so that it appears as
though there is a "hole" in the application - I can do so in the
following manner:

1 - Create Window, put Panel control on Window
2 - Set Window's TransparencyKey property to Pink
3 - Set Panel's background color to Pink

This creates a see-through, "screen capture"-like look.

There is, however, no TransparencyKey property on a WPF window. Is it
possible to do this sort of thing in WPF?

(I guess I could host a Windows Forms custom UserControl that does
such a thing within a WPF window, but that seems a wee bit hoakie)

Any advice appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top