Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How do I make floating windows outside of my application?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-09-2006   #1 (permalink)
Michael Sheakoski
Guest


 

How do I make floating windows outside of my application?

Hello. In Expression Interactive Designer you can detach tool windows from
the docked area and put them outside of the application on your desktop if
you want. Or in certain programs like Outlook there is a little
popup/notification window in the bottom right of the screen when you recieve
a new email. How is this possible to do in WinFX/XAML? Is the markup for
these detached windows contained in the XAML for the main scene or is the
code in a seperate XAML file (scene) that is spawned by the main program? My
best guess is that it is a seperate window since any markup in the main xaml
would be a child of the main window and contained only inside of it?

Thank you,
Michael

My System SpecsSystem Spec
Old 03-09-2006   #2 (permalink)
Dennis Cheng [MSFT]
Guest


 

Re: How do I make floating windows outside of my application?

Yes, you can easily create a custom control to do it because we don't have a
stock dockable window control. Check out the TearOffPanel control in the
SdkViewer application sample to get you started. It's in the Windows SDK.

For the window animations and transparency, use the new
HwndSourceParameters.UsesPerPixelOpacity that made it into the February CTP.
It goes something like this:

HwndSourceParameters param = new HwndSourceParameters("Toast",
0, 0);
param.UsesPerPixelOpacity = true;
param.ExtendedWindowStyle = WS_EX_TOPMOST | WS_EX_TOOLWINDOW;

HwndSource source = new HwndSource(param);
source.RootVisual = new Button();

ShowWindow(source.Handle, SW_SHOW);

More info about HwndSource at http://blogs.msdn.com/nickkramer/atom.aspx



"Michael Sheakoski" <MichaelSheakoski@discussions.microsoft.com> wrote in
message news:363D5B71-8F1A-4666-BC5F-E91CB02D5C6A@microsoft.com...
> Hello. In Expression Interactive Designer you can detach tool windows
> from
> the docked area and put them outside of the application on your desktop if
> you want. Or in certain programs like Outlook there is a little
> popup/notification window in the bottom right of the screen when you
> recieve
> a new email. How is this possible to do in WinFX/XAML? Is the markup for
> these detached windows contained in the XAML for the main scene or is the
> code in a seperate XAML file (scene) that is spawned by the main program?
> My
> best guess is that it is a seperate window since any markup in the main
> xaml
> would be a child of the main window and contained only inside of it?
>
> Thank you,
> Michael



My System SpecsSystem Spec
Old 04-20-2006   #3 (permalink)
Stefc
Guest


 

Re: How do I make floating windows outside of my application?

I use the same code you mentioned to make a transparent splash screen the
only stuff I can't work out is that the "HwndSource source" appears in the
taskbar

If I look in the documentation for CreateWindowEx() for the WS_EX_XXXX flags
it seems that the WS_EX_APPWINDOW is setted inside of the HwndSource()
constructor. This is what I don't want for a splash screen I created with WPF

The rest of your very helpfull sample is very nice for creating a smart
splash screen with WPF !!!

Instead of a button I use a Page for assign to RootVisual

--
Mfg Stefc


"Dennis Cheng [MSFT]" wrote:

> Yes, you can easily create a custom control to do it because we don't have a
> stock dockable window control. Check out the TearOffPanel control in the
> SdkViewer application sample to get you started. It's in the Windows SDK.
>
> For the window animations and transparency, use the new
> HwndSourceParameters.UsesPerPixelOpacity that made it into the February CTP.
> It goes something like this:
>
> HwndSourceParameters param = new HwndSourceParameters("Toast",
> 0, 0);
> param.UsesPerPixelOpacity = true;
> param.ExtendedWindowStyle = WS_EX_TOPMOST | WS_EX_TOOLWINDOW;
>
> HwndSource source = new HwndSource(param);
> source.RootVisual = new Button();
>
> ShowWindow(source.Handle, SW_SHOW);
>
> More info about HwndSource at http://blogs.msdn.com/nickkramer/atom.aspx
>
>
>
> "Michael Sheakoski" <MichaelSheakoski@discussions.microsoft.com> wrote in
> message news:363D5B71-8F1A-4666-BC5F-E91CB02D5C6A@microsoft.com...
> > Hello. In Expression Interactive Designer you can detach tool windows
> > from
> > the docked area and put them outside of the application on your desktop if
> > you want. Or in certain programs like Outlook there is a little
> > popup/notification window in the bottom right of the screen when you
> > recieve
> > a new email. How is this possible to do in WinFX/XAML? Is the markup for
> > these detached windows contained in the XAML for the main scene or is the
> > code in a seperate XAML file (scene) that is spawned by the main program?
> > My
> > best guess is that it is a seperate window since any markup in the main
> > xaml
> > would be a child of the main window and contained only inside of it?
> >
> > Thank you,
> > Michael

>
>
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute VBScript from a floating popup menu crashRCFlyer VB Script 1 08-29-2008 01:13 PM
Still no floating/dock windows and no high perf virtual grid?!! nickdu Avalon 0 03-14-2008 04:27 PM
Windows Application vs XAML Browser Application Denis Avalon 0 04-20-2007 01:43 AM
Vista speech results in Floating point division by zero exception Davy Vista General 0 02-27-2007 04:10 AM
Floating Toolbar Xeonwales Vista General 1 02-03-2007 12:58 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51