【问题标题】:RadWindow icon not shown in taskbarRadWindow 图标未显示在任务栏中
【发布时间】:2018-08-11 09:25:27
【问题描述】:

similar question 被错误地标记为重复。

given answer 有效,但它不是 XAML-ish 做的。 Telerik 推荐了我下面的自我回答帖子。

【问题讨论】:

    标签: wpf xaml telerik


    【解决方案1】:

    Telerik example中,MainWindow中有三行如下;

    xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
    navigation:RadWindowInteropHelper.ShowInTaskbar="True"
    navigation:RadWindowInteropHelper.Icon="icon.ico"
    

    当然,你应该准备icon.ico文件。

    完整的xaml代码如下。

    <telerik:RadWindow x:Class="RadWindowAsMainWindow.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
            xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
            navigation:RadWindowInteropHelper.ShowInTaskbar="True"
            navigation:RadWindowInteropHelper.Icon="icon.ico"
            Header="MainWindow" Height="350" Width="525">
        <Grid>
            <TextBlock Text="The application is shown inside RadWindow." />
        </Grid>
    </telerik:RadWindow>
    

    【讨论】:

      猜你喜欢
      • 2014-10-20
      • 1970-01-01
      • 1970-01-01
      • 2018-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多