IconTemplate and icon on taskbar is not the same

4 posts, 0 answers
  1. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 29 Feb 2012 Link to this post

    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
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 02 Mar 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 02 Mar 2012 Link to this post

    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
  5. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 19 Apr 2013 Link to this post

    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.
Back to Top