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

Change Radwindow Icon

2 Answers 357 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 1
Michele asked on 30 May 2009, 06:04 AM
Thank's for your help about Radwindow Theme.
Now I have another question. I can not setting my custom Icon in the Window Title bar....
I tried to set the 'Icon' attribute:

 

 

<telerik:RadWindow x:Name="wndSample"   Icon="Images/myPng.png"

 

but it don't work.

Can you give me some help?
Thanks, Michael

 

 

 

 

 

 

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 02 Jun 2009, 02:20 PM
Hi Michele,

This is not right way to set the Icon of the RadWindow. First of all you should change the IconTemplate of the RadWindow control, because the default one contains the default Icon. As we know this is not expected we changed this behavior and you won't need to do that any more.

To make this work in the current version do the following:
<telerik:RadWindow x:Name="wndSample" IconTemplate="{x:Null}"
    <telerik:RadWindow.Icon> 
        <Image Source="Images/myPng.png" /> 
    </telerik:RadWindow.Icon> 
</telerik:RadWindow> 

In the next version you will not need the part - IconTemplate="{x:Null}".

Best wishes,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Michele
Top achievements
Rank 1
answered on 02 Jun 2009, 08:00 PM
Thank You, Miroslav

Now it's working very well.

Michele
Tags
Window
Asked by
Michele
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Michele
Top achievements
Rank 1
Share this question
or