This is a migrated thread and some comments may be shown as answers.

Flashing window in taskbar

1 Answer 449 Views
Window
This is a migrated thread and some comments may be shown as answers.
M L
Top achievements
Rank 1
M L asked on 12 Jun 2014, 09:24 AM
Hi,
How to make the RadWindow flash in taskbar?
One of the popular chatting programms does that - when you get a message, it's taskbar representation turns blue. Is it possible to do the same with a RadWindow?
What I've tried so far:
first I've made the window to appear in the taskbar by adding this to xaml:
navigation:RadWindowInteropHelper.ShowInTaskbar="True"

Next i tried googling how to do that for a regular wpf window and found something like this:
http://www.jarloo.com/flashing-a-wpf-window/
this compiles nicely but doesnt work in my case even for a wpf window. However, if i use it for a radwindow by using something like this:

public static void FlashWindow(RadWindow control)
        {
            var window = control.ParentOfType<Window>();
            window.FlashWindow();
        }
I get a null pointer exception. (there is no null pointer for regular window, but it doesnt seem to be flashing either)

Anyway, I don't really mind the method, I would just like to be able to make the taskbar window flash (system flash or manual changing of the background color on the taskbar if there is such an option?)
Is it possible with a RadWindow and if so - how to do it?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 13 Jun 2014, 12:32 PM
Hi,

You can check the this article which demonstrates a working approach. I have also created a sample project using the sample from there and attached it here, note that the Window in TaskBar is flashes only when the Window is not active.

Hope this will help you to achieve the desired.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Window
Asked by
M L
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or