Windows Vista Forums
Vista Forums Home Join Vista Forums Donate 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

Flash a XAML window a la FlashWindowEx?

Closed Thread
 
Thread Tools Display Modes
Old 02-04-2006   #1 (permalink)
Chris Sammis
Guest


 

Flash a XAML window a la FlashWindowEx?

I'm looking for a way to cause a XAML window to flash in the same way as
calling the Win32 API function FlashWindowEx. I found a newsgroup post while
Googling that mentioned Window.Activate would cause the "give me focus!"
flashing, but that didn't work; Window.Activate brought the window to the
foreground, stealing focus from other windows.

If there isn't an equivalent method for XAML windows, how can I get a handle
to a XAML window that FlashWindowEx will accept?

Thanks.
Old 02-04-2006   #2 (permalink)
Drew Marsh
Guest


 

Re: Flash a XAML window a la FlashWindowEx?

Chris Sammis wrote:

> If there isn't an equivalent method for XAML windows, how can I get a
> handle to a XAML window that FlashWindowEx will accept?


Yes, use WindowInteropHelper[1].

HTH,
Drew

[1] http://windowssdk.msdn.microsoft.com...eropHelper.asp
___________________________________
Drew Marsh
Chief Software Architect
Mimeo.com, Inc. - http://www.mimeo.com
Microsoft C# / WPF MVP
Weblog - http://blog.hackedbrain.com/


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I get a flash of another window while working in different ones marksgirl5 Vista performance & maintenance 2 02-20-2008 11:52 AM
Window does not show up when called from App.xaml.cs .Rasmus Avalon 0 11-23-2006 04:29 PM
Custom Window as a XAML root element! deepforest Avalon 2 11-23-2006 10:16 AM
Reference a xaml window from a WinFX Custom Control Library ? Peter Fitzgibbons Avalon 3 02-24-2006 04:11 PM
Hook into running XAML window for unit testing gui ? Peter Fitzgibbons Avalon 1 02-23-2006 12:18 AM








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