This is a migrated thread and some comments may be shown as answers.
Mouse down event and RadWindow
1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 29 Jul 2011, 10:50 AM
Hello

I have a question.
This is our scenario:

1. We open a rad window.
2. In the content we have TextBlock. We add LeftMouseDown event on it. We want to open another rad window by this event.
3. Another window is opened. But after this first rad window is activated again. (I think by mouse down this window is activated).

So new window is shown under first. And as both window is modal - we cannot get access to the second window.

It reproduced even If I set Handled to the MouseEvent.

So the question is - how get I open another window by LeftMouseDownEvent?

Thanks, Anatoly Chekh.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivo
Telerik team
answered on 01 Aug 2011, 07:53 AM
Hello Anatoly,

Most actions in Silverlight fire on the MouseLeftButtonUp event. Using this event will work great for you. However, if you want to use the MouseLeftButtonDown, here is a possible workaround:

Dispatcher.BeginInvoke(
new Action(() =>
{
    RadWindow window = new RadWindow();
    window.ShowDialog();
}));


All the best,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Asked by
Anatoly Chekh
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or