Welcome to MSDN Blogs Sign in | Join | Help

Lester's WPF blog


Simple, easy & beautiful

News

Using WPF for creating gadgets/desktop apps

In the June CTP we have the AllowsTransparency property made available at the Window level. This takes away lot of pain from using HwndSources. It makes life a lot easeir since all that is needed is to set the properties: AllowsTransparency="true" Background="transparent" and WindowStyle="none". As in the case of HwndSource this would remove the title bar and to provide the drag functionality we would have to use a Thumb. I tried putting these new properties to good use by creating a simple gadget ( more of a desktop app) which is just eye candy :)....

So its a rotating globe... which has a circular thumb for dragging it along and the ever so useful Close button. And yeah there is no minimized button; thats by design :) couldnt resist saying that... So in effect it has everything to start off creating simple desktop gadgets.

The project is attached for convenience and experimenting :).

Posted: Wednesday, August 09, 2006 10:51 PM by llester
Attachment(s): transparency with thumb.zip

Comments

Christian Weyer said:

Cool demo - but the drag does not work for me... hm.
# August 10, 2006 7:13 AM

llester said:

The drag code is the same that I posted in a post concerning HwndSources... the code should work fine
# August 16, 2006 5:51 AM
New Comments to this post are disabled
Page view tracker