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

No Header Except When Minimized

2 Answers 87 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 05 Jan 2015, 09:04 PM
Hello,

While trying to implement the OutlookBar as a container in Prism tutorial (http://docs.telerik.com/devtools/wpf/controls/radoutlookbar/how-to/How_to_Use_RadOutlookBar_as_a_Container_in_Prism_Application.html), the headers do not appear as the tutorial shows. 

I am following the first guide where it adds a header by adding a member, ItemHeader, to the view.  The OutlookBar is set with the DisplayProperty = "ItemHeader", but upon execution, the application does not show the header.  If the horizontal bar is dragged down, the items are minimized and can be read.  So, it appears that the header is set, but is not being displayed properly while not minimized.

I'm assuming this is a simple binding error, but I'm not sure how to proceed.

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 08 Jan 2015, 04:23 PM
Hello Paul,

I tested the reported behavior and it seems that the DisplayMemberPath property of RadOutlookBar does not work in WPF and this is why the Headers of the items are not displayed. I logged an item in our feedback portal that relates to this issue. You can track the issue's status by following the feedback item. I also updated your Telerik points as a small sign of gratitude for reporting this behavior.

As a workaround you can use an implicit style targeting RadOutlookBarItem instead of the DisplayMemberPath property. You can define the style in the xaml page (the view) where the RadOutlookBar control is defined.

Here is an example in code:
<Window.Resources>
    <Style TargetType="telerik:RadOutlookBarItem">
        <Setter Property="Header" Value="{Binding ItemHeader}" />
    </Style>
</Window.Resources>

I hope this information helps.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Paul
Top achievements
Rank 1
answered on 08 Jan 2015, 06:09 PM
Thanks for the reply and workaround!
Tags
OutlookBar
Asked by
Paul
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Paul
Top achievements
Rank 1
Share this question
or