Search code examples
c#wpftelerik

Telerik RadWindow icon not displayed on task bar c# wpf


I have created one application using c# wpf. I have set the application icon from the properties->Application,but some how application icon not displayed on taskbar.the application is running but nothing displayed on the taskbar. I can operate application properly.

I not getting what is wrong


Solution

  • Hey you can try this out

        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Window window = (sender as RadWindow).ParentOfType<Window>();            
            if (window != null)
            {
                window.ShowInTaskbar = true;
                window.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Screener;Component/Images/Screener1.ico", UriKind.RelativeOrAbsolute));
            }
            throw new NotImplementedException();
        }