Welcome to MSDN Blogs Sign in | Join | Help

UsesPerPixelOpacity example

Lester Lobo posted an example of UsesPerPixelOpacity=true: http://blogs.msdn.com/llobo/archive/2006/02/24/538757.aspx

Keep in mind you don't need to use HwndSource -- you can use the Popup class instead, which is generally more convenient since it saves you some pinvoking.

Published Tuesday, February 28, 2006 12:43 AM by nkramer

Comments

Tuesday, February 28, 2006 9:51 AM by Roland Hasenoehrl

# re: UsesPerPixelOpacity example

Popup is nice, but there is no "UsesPerPixelOpacity" property? Or is there any other way to implement transparency?  
Wednesday, March 01, 2006 7:03 PM by Jeff

# re: UsesPerPixelOpacity example

Note that there's another sample showing the new UsesPerPixelOpacity stuff in the FebCTP version of the SDK. The sample is under "Cross-technology Samples" (unfortunately), and is called GadgetUILibrary. Defines a GadgetWindow class that you pass a Visual to and show ... pretty much takes care of everything else.
Thursday, March 02, 2006 4:22 AM by hasenoehrl

# re: UsesPerPixelOpacity example

Nice sample, but the transparency does not work on my machine. And second it also uses the HwndSource and some ugly Win32 calls. So do i miss something?
Friday, March 31, 2006 6:21 PM by Tomi B.

# re: UsesPerPixelOpacity example w/ Popup

Roland, I got transparency to work on a Popup by setting AllowsTransparency=true.
Monday, April 03, 2006 8:09 AM by Roland Hasenoehrl

# re: UsesPerPixelOpacity example

Ahh, thanks a lot. Now the Popup works with transparency and without any HwndSource and W32 stuff:-)
New Comments to this post are disabled
 
Page view tracker