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

Show In Taskbar

15 Answers 888 Views
Window
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 20 Aug 2009, 02:47 AM
Hi,

Does the RadWindow Control have something similar to the ShowInTaskBar property that a standard WPF Window has?

Regards,
Glen

15 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Aug 2009, 12:38 PM
Hello Glen,

At this time it doesn't have such property and such functionality but we are planning to extend it in this direction. Unfortunately it won't happen for the Q3 release.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Wil
Top achievements
Rank 1
answered on 30 Sep 2009, 03:53 AM
I am extremely disappointed that the RadWindow does not have the functionality that at least allows a window to show up in the taskbar.  One of the primary reasons we purchased the product was to be able to use RadWindow as a replacement for the window because of the out of the box look. 

There must be some kind of workaround to allow the window to be shown in the taskbar as I would think it hits a sore point for many people considering using the RadWindow vs. a regular Window.
0
Miroslav Nedyalkov
Telerik team
answered on 30 Sep 2009, 02:00 PM
Hello Wil,

The idea of the RadWindow is to share common code base for windows based, XBAP and Silverlight application. It doesn't have all the features that the WPF window have yet, because we are targeting common features in all supported platforms and the main problem here is that there is not taskbar in XBAP and Silverlight

We've planned to extend the RadWindow control to allow most of the things that WPF window does, but unfortunately these improvements are not ready yet.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Wil
Top achievements
Rank 1
answered on 30 Sep 2009, 02:29 PM
Thank you for your reply.  It is good to know that you are planning to accomodate most of the WPF Window features in the future.  Unfortunately that does not help me now.

Since the RadWindow does not subclass System.Windows.Window can you provide me any hints how I would get a handle to the RadWindow so that I can use the ITaskbarList shell32 API to display the window in the taskbar?  If it did subclass the Window then I would be able to use the System.Windows.Interop.WindowInteropHelper to get a handle to the window and then use the shell API.  Is is there some other underlying window that is used to display the RadWindow that may have a valid window handle?

Thank you,
Wil
0
Wil
Top achievements
Rank 1
answered on 30 Sep 2009, 02:47 PM
OK so i have a hack that is close.  Please let me know if there are other things I may need to consider as I may not understand everything that is going on under the covers with the RadWindow.

It looks as if the parent to the RadWindow is actually a Window which is accessible after the RadWindow has loaded.  If you are attempting to use the RadWindow for the MainWindow of your WPF application it is possible to get the RadWindow to show up in the taskbar as follows.

In a Loaded event handler for the RadWindow you can do something like the following...

 
            if (this.Parent is Window)  
            {  
                Window thisWindow = this.Parent as Window;  
                thisWindow.ShowInTaskbar = true;  
                thisWindow.Title = this.Header.ToString();  
            } 

 


The above code does get the RadWindow to show up in the taskbar and at first glance it does seem to behave properly.  Please let me know what other considerations there are here.

Thank you,
Wil Peck
0
Miroslav Nedyalkov
Telerik team
answered on 01 Oct 2009, 08:11 AM
Hi Wil,

This is correct - the RadWindow for windows based WPF application uses WPF Window control as a host and you could get it and use it. The reason why we don't give a standard way to do this is because it is far different in XBAP and Silverlight and we want to keep the API of the RadWindow control consistent.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
yonadav
Top achievements
Rank 1
answered on 04 Nov 2009, 05:39 PM
Wil, you've helped me greatly!
0
YodaKIRI
Top achievements
Rank 2
answered on 10 Jan 2010, 07:00 PM
I would like to contribute as I got a little better version, I am using a UserControl loaded in a RadWindow so this one will always work :

var window = this.ParentOfType<Window>(); 
if (window != null) 
    RadWindow radWindow = RadWindow.GetParentRadWindow(this); 
    window.ShowInTaskbar = true
    window.Title = radWindow.Header.ToString(); 

Thanks to Wil for this idea.
0
Miroslav Nedyalkov
Telerik team
answered on 11 Jan 2010, 09:15 AM
Hi All,

 Thank you for your suggestions! Laurent and Wil, your Telerik points were updated.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris
Top achievements
Rank 1
answered on 28 Jan 2010, 07:57 AM
Hi All,

If i declare the Rad Window directly in XAML as the main window then I am unable to apply Wil's loaded event as the parent is a canvas and not a window?
0
Miroslav Nedyalkov
Telerik team
answered on 01 Feb 2010, 10:34 AM
Hello Chris,

 Unfortunately the RadWindow control doesn't support to be the main window of the application.

Sincerely yours,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Garry Clark
Top achievements
Rank 1
answered on 05 Mar 2010, 02:41 PM
Miroslav will this be in the upcoming Q1 release?
0
Miroslav Nedyalkov
Telerik team
answered on 10 Mar 2010, 09:10 AM
Hello Garry,

 Unfortunately we cannot implement this as a part of the RadWindow control. We are thinking about implementing another control, meant to be used as a root of the application with the same (or similar) API as the RadWindow control.

Sincerely yours,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Akram
Top achievements
Rank 1
answered on 13 Dec 2012, 03:43 PM
Hi
Were you  succeed to implement the main window control?

Thanks,
Akram
0
Yana
Telerik team
answered on 18 Dec 2012, 08:26 AM
Hi Akram,

You can check this KB article - in the attached project it is demonstrated how you could achieve the needed approach.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Glen
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Wil
Top achievements
Rank 1
yonadav
Top achievements
Rank 1
YodaKIRI
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Garry Clark
Top achievements
Rank 1
Akram
Top achievements
Rank 1
Yana
Telerik team
Share this question
or