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

multible windows

3 Answers 80 Views
Window
This is a migrated thread and some comments may be shown as answers.
reema
Top achievements
Rank 1
reema asked on 02 May 2009, 10:09 AM
hi,

in my application I have multiple windows how can I know which one is on top , in other words which one is the active one or the selected one ? ..

thx

3 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 03 May 2009, 06:09 PM
Hi reema,

This is a good suggestion for a feature. Currently you cannot distinguish the top window among several. We will put this feature in our priority list for the next release. Please feel free to contact us for any further assistance.

All the best,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bichitra
Top achievements
Rank 1
answered on 03 May 2009, 10:35 PM
Hi,

I have one question related to this post.

I have opened 2 radwindow, I observed that tha last window(opened) zorder is always top. If I focus on any control on 1st Radwindow which  is opned before 2nd Window  is not changed zorder (should be greater or active window). unless i click on header of this window. Can you please tell the way how to activate the window as put focus on any control inside the window.

Thanks
Bichitra
0
Valeri Hristov
Telerik team
answered on 06 May 2009, 02:00 PM
Hi Bichitra,

The following C# code will bring the window that contains the focused TextBox on top:

 

private void Button_Click(object sender, RoutedEventArgs e)
{
    
RadWindow window = new RadWindow();
    window.Content =
new StackPanel()
    {
        Children =
        {
            new TextBox()
        }
    };
    window.GotFocus +=
new RoutedEventHandler(window_GotFocus);
    window.Show();
}

void window_GotFocus(object sender, RoutedEventArgs e)
{
    (sender
as RadWindow).BringToFront();

 

}

Greetings,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
reema
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Bichitra
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or