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

Can't see RadWindow in the task bar

9 Answers 1129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ofer alper
Top achievements
Rank 1
ofer alper asked on 20 Dec 2009, 02:53 PM
Hello,

I have a main window and i open a second window, but i can't see the second window in the task bar.

The code that i use to open the second window:

            var bookWindow = new RadWindow {Content = this, Height = this.Height, Width = this.Width, CanMove = true};
            var book = (Book)this.DataContext;
            bookWindow.Header = Convert.ToString(book.DisplayName);
            bookWindow.WindowState = WindowState.Normal;
            bookWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            bookWindow.Owner = SampleWindow.mainWindow;
            bookWindow.Show();
            bookWindow.BringToFront();

Thanks,
Ofer

9 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 21 Dec 2009, 01:31 PM
Hi,

Straight to your question.
The expected behavior of the RadWindow is to not show in the taskbar. If you want to see the window in the taskbar you will have to implement that feature further.
If you need any further assistance please feel free to contact us again.


All the best,
Konstantina
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
ofer alper
Top achievements
Rank 1
answered on 22 Dec 2009, 06:59 AM
How can i implement it, I didn't find the ShowInTaskBar property of system.Windows.Window

Thanks.
0
Konstantina
Telerik team
answered on 24 Dec 2009, 08:43 AM
Hi,

As I mentioned before the expected behavior of the RadWindow is not to show in the taskbar. However, attached you will find a simple project, which illustrates how can a RadWindow be shown in the taskbar. Please keep in mind that this isn't a supported feature, so you may experience restrictions in the functionality.
If you have any other concerns please feel free to contact us again, we will be very happy to help.

Greetings,
Konstantina
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
Maxim
Top achievements
Rank 1
answered on 08 Apr 2011, 10:17 AM
Hello,

first, thanks for a great components!

second, I have some questions: standart window has in taskbar icon and title, but if I'll start demo-program, second window will have standart icon and no title (in taskbar). How can I implement this features?

Thanks.

------------------------------------------------------------
upd: problem is solved:

links:
http://www.telerik.com/community/forums/wpf/window/show-in-taskbar.aspx
http://stackoverflow.com/questions/1551566/how-to-set-the-icon-property-in-code-how-to-understand-the-way-it-is-done-in-xam

or add in Loaded event handler something like this
if (window != null)
 {
            window.ShowInTaskbar = true;
            window.Title = this.Header.ToString();
            string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\icon_1.png";          
             window.Icon = BitmapFrame.Create(new Uri(path, UriKind.Absolute));
}
0
Erica
Top achievements
Rank 1
answered on 22 Aug 2012, 07:21 PM
This solution does not work because RadWindow.Opened has been deprecated. How can I do this now? I want to use the RadWindow for all of my windows. Thanks!
0
Konstantina
Telerik team
answered on 27 Aug 2012, 10:00 AM
Hi Erica,

Could you please elaborate more on the difficulties you experience. In that way we will be able to assist you further.

All the best,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Peter
Top achievements
Rank 1
answered on 27 Aug 2012, 02:37 PM
From Erica:

I solved the issue by running this code after InitializeComponent();

        public static void ShowInTaskbar(RadWindow control, string title)
        {
            control.Show();
            var window = control.ParentOfType<Window>();
            window.ShowInTaskbar = true;
            window.Title = title;
            var uri = new Uri("pack://application:,,,/CLOS_UI;component/Icon.ico");
            window.Icon = BitmapFrame.Create(uri);
        }
0
Abdulkarim
Top achievements
Rank 1
answered on 20 Jun 2018, 02:28 AM
thanks it worked
0
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 20 Dec 2020, 01:26 AM

Bringing this back from the dead, but I'm trying to accomplish the same task ... Since my MainWindow  Inherits RadWindow (required for "themes") the ShowInTaskBar property is not available even when it is my "MainWindow" not a second window.  My users are wondering where the icon for my app is in the taskbar.

Can someone show me how to get ShowInTaskBar working with I'm using a RadWindow as my MainWindow?

BTW, this is a VERY important option and no mention of not being able to use ShowInTaskBar when using a RadWindow?  It would be VERY helpful if a list of "restictions" were provided around using RadWindow.  These are "core" restictions that affect design decisions and which route to go or not in terms of application Theme usage.

Cheers, Rob.

Roland
Top achievements
Rank 1
commented on 03 Jun 2021, 01:12 PM

I had the same issue. For anyone else reading this post, refer to the RadWindowInteropHelper

https://docs.telerik.com/devtools/wpf/controls/radwindow/features/radwindowinterophelper
Tags
GridView
Asked by
ofer alper
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
ofer alper
Top achievements
Rank 1
Maxim
Top achievements
Rank 1
Erica
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Abdulkarim
Top achievements
Rank 1
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or