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

IconTemplate and icon on taskbar is not the same

3 Answers 185 Views
Window
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 29 Feb 2012, 05:59 PM
Hi,

I'm using RadWindow in my project and for each of them I set the following in my xaml:

    <telerik:RadWindow.IconTemplate>
        <DataTemplate>
            <Image Source="Resources/About_32x32.png" Height="24" Width="24" Stretch="Fill" Margin="0 0 3 0" />
        </DataTemplate>
    </telerik:RadWindow.IconTemplate>

When my RadWindow is visible, the ico attache to my RadWindow is clearly the one I have in my IconTemplate. When I minimize my RadWindow on my taskbar, the icon on the taskwindow is the default one (a small window).

Thank's

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 02 Mar 2012, 11:03 AM
Hello Oliver,

I think you are referring to an application icon. This one can be set in the Properties of your StartUp project. In the Application tab, there is an 'Icon and manifest' section, where you can link to your .ico of choice.

I hope this helps.

Kind regards,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Oliver
Top achievements
Rank 1
answered on 02 Mar 2012, 04:14 PM
Hi,

I changed what you mentionned but I still having the problem. I use a RadWindow not a standard Window. If I comvert my RadWindow to a normal Window, it work. The problem are present only with a RadWindow.

Thank's
0
N Mackay
Top achievements
Rank 1
answered on 19 Apr 2013, 03:02 PM
This works if anyone's interested

Header="My Product Suite" Height="768" Width="1024" IconTemplate="{DynamicResource WindowIconTemplate}">
 
   <telerik:RadWindow.Resources>
       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="pack://application:,,,/Company.Framework.Resource;Component/SharedResources.xaml"></ResourceDictionary>
           </ResourceDictionary.MergedDictionaries>
 
           <DataTemplate x:Key="NavTemplate">
               <views:NavBar/>
           </DataTemplate>
           <DataTemplate x:Key="PreviewTemplate">
               <views:PreviewBar/>
           </DataTemplate>
 
           <DataTemplate x:Key="WindowIconTemplate">
               <Image Source="{DynamicResource shell_module_ind}" Height="24" Width="24"/>
           </DataTemplate>
 
           
       </ResourceDictionary>
 
   </telerik:RadWindow.Resources>

It doesn't like ICO files so use PNG's.
Tags
Window
Asked by
Oliver
Top achievements
Rank 1
Answers by
Dani
Telerik team
Oliver
Top achievements
Rank 1
N Mackay
Top achievements
Rank 1
Share this question
or