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

Radwindow Manager should Share List and reference/pointer to Currentley Open Windows

3 Answers 97 Views
Window
This is a migrated thread and some comments may be shown as answers.
Amir
Top achievements
Rank 1
Amir asked on 27 Oct 2008, 07:26 PM
Hi,

I have a new feature request, there is often a need to know what windows are currentley open. Be it for handling application states or other situations.
Therefore I believe Radwindow Manager should share the list of currently open windows and be able to return a reference to a window in that list.

Thanks,

3 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 28 Oct 2008, 01:59 PM
Hello Amir,

I strongly agree with you that whenever you are using several RadWindows. it is often necessary to perform some actions on them. For the Q3 release we will include a method that returns a reference to all RadWindows filtered by a boolean delegate function. For example, you will be exposed to the following method:

public static List<RadWindow> GetWindows(Func<RadWindow, bool> filter) 

So you can actually solve your problem by just calling the GetWindows function:

RadWindowManager.GetWindows((w) => w.IsOpen == true); 

This is just a small fraction of the new functionality that we plan to include for the Q3 release. Thank you for sharing you experience, and please feel free to contact us as soon as possible whenever you want to share your opinion with us.

st wishes,
Hristo Borisov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Amir
Top achievements
Rank 1
answered on 23 Jan 2009, 02:48 AM
Hi,

Do you have any news about this functionality?

We really need some window management to make our solution attractive.

cascading / stacking / side by side

Cheers,
0
Boyan
Telerik team
answered on 23 Jan 2009, 10:05 AM
Hi Amir,

This functionality was implemented for Q3 as it is said here. Class RadWindowManager was added. For a reference you can see this example  http://demos.telerik.com/silverlight/#Window/Ordering. It is list on all windows in application. Except for the code shown in the example which closes all windows, you can use it like this :

          private void button1_Click(object sender, RoutedEventArgs e) 
          { 
               IEnumerable<RadWindow>     windows = RadWindowManager.GetWindows((w) => w.IsPinned == true); 
 
               textblock.Text = windows.ToList()[0].Header.ToString(); 
 
          } 

This code returns all windows that are pinned and write the first element(converted to string) in a texblock.

Thus, you can either get all windows or filter them by some property and then perform actions with them.

Hope this will fulfill your needs.

All the best,
Boyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Amir
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Amir
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or