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

Customizing ItemMinimizedTemplate with SmallIcons

2 Answers 88 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Igor Macedo
Top achievements
Rank 2
Igor Macedo asked on 30 Aug 2010, 04:57 PM
Hi everybody,

It's possible to customize the SmallIcons on ItemMinimizedTemplate?

I'm trying something simple like resize the icon or change their position, but I can't replace this element...

<DataTemplate x:Key="ItemMinimizedTemplate">
    <StackPanel Orientation="Horizontal" Background="Yellow" Width="50" Height="20">
        <!-- I wan't to put the icon here with specific size /-->
        <TextBlock Text="{Binding}" />
    </StackPanel>
</DataTemplate>

In all tests I did, the SmallIcon is showed on left of StackPanel.

Thanks in advance

Igor

2 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 02 Sep 2010, 02:42 PM
Hello Igor,

In order to implement this scenario you don't need to use the SmallIcon property of the RadOutlookBarItem. You can simply define an Image control in the ItemMinimizedTemplate and customize it accordingly to your scenario's requirements.

The SmallImage property of the RadOutlookBarItem is exposed to allow an easier definition of an Icon in front of the MinimizedItem's Content. However, in scenarios where these items need to be customized, it is better to set an ItemMinimizedTemplate.

I prepared a sample project for you to take a look at.

Also, you can take a look at the RadOutlookBar templates here.

I hope this information will help you. Please let us know if we can further assist you.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Igor Macedo
Top achievements
Rank 2
answered on 23 Sep 2010, 02:55 PM
Hey Tina, thanks for your help and sorry about the delay to reply!

Regards

Igor
Tags
OutlookBar
Asked by
Igor Macedo
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Igor Macedo
Top achievements
Rank 2
Share this question
or