Telerik RadWindow 图标未显示在任务栏上 c# wpf [英] Telerik RadWindow icon not displayed on task bar c# wpf

查看:38
本文介绍了Telerik RadWindow 图标未显示在任务栏上 c# wpf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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.

我不明白有什么问题

推荐答案

嘿,你可以试试这个

    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();
    }

这篇关于Telerik RadWindow 图标未显示在任务栏上 c# wpf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆