RadWindow图标未显示在任务栏中

问题描述 投票:1回答:1

similar question错误地标记为重复。

given answer有效,但它不是XAML-ish所做的。 Telerik建议我在下面发表自我回复帖子。

wpf xaml telerik
1个回答
1
投票

Telerik exampleMainWindow有三条线如下;

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>
© www.soinside.com 2019 - 2024. All rights reserved.