Show In Taskbar

16 posts, 0 answers
  1. Glen
    Glen avatar
    9 posts
    Member since:
    Apr 2009

    Posted 19 Aug 2009 Link to this post

    Hi,

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

    Regards,
    Glen
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Aug 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Wil
    Wil avatar
    5 posts
    Member since:
    Aug 2012

    Posted 29 Sep 2009 Link to this post

    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.
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Sep 2009 Link to this post

    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.
  6. Wil
    Wil avatar
    5 posts
    Member since:
    Aug 2012

    Posted 30 Sep 2009 Link to this post

    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
  7. Wil
    Wil avatar
    5 posts
    Member since:
    Aug 2012

    Posted 30 Sep 2009 Link to this post

    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
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Oct 2009 Link to this post

    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.
  9. yonadav
    yonadav avatar
    60 posts
    Member since:
    Oct 2009

    Posted 04 Nov 2009 Link to this post

    Wil, you've helped me greatly!
  10. YodaKIRI
    YodaKIRI avatar
    33 posts
    Member since:
    Nov 2006

    Posted 10 Jan 2010 Link to this post

    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.
  11. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Jan 2010 Link to this post

    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.
  12. Chris
    Chris avatar
    10 posts
    Member since:
    Dec 2009

    Posted 28 Jan 2010 Link to this post

    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?
  13. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Feb 2010 Link to this post

    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.
  14. Garry Clark
    Garry Clark avatar
    55 posts
    Member since:
    Jan 2005

    Posted 05 Mar 2010 Link to this post

    Miroslav will this be in the upcoming Q1 release?
  15. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Mar 2010 Link to this post

    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.
  16. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 13 Dec 2012 Link to this post

    Hi
    Were you  succeed to implement the main window control?

    Thanks,
    Akram
  17. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Dec 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready