Strange behaviour of minimized Icons

3 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Jun 2011

    Posted 15 Jul 2011 Link to this post

    Edit: Title should be "Strange behaviour of minimized ITEMS" (not icons, but I can't change the Title)

    Dear Support,

    I'm just testing your controls because the Infragistics-Suite seems not to support MVVM in any way.
    Your OutlookBar works great, but I have an issue/question about the "Caption/Header/Text" of minimizedItems.
    Please take a look at following XAML
    <telerik:RadOutlookBar QuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" telerik:Theming.Theme="Office_Blue" ItemsSource="{Binding OutlookEntries}" Height="234" HorizontalAlignment="Stretch" Margin="211,6,160,31" Name="RadOutlookBar1" VerticalAlignment="Stretch" Width="229">
                <Style TargetType="{x:Type telerik:RadOutlookBarItem}">
                      <Setter Property="Header" Value="{Binding Header}"/>                         
                      <Setter Property="SmallIcon"  Value="{Binding SmallImage}"/>
                      <Setter Property="Title" Value="{Binding Header}"/>
                      <Setter Property="Icon" Value="{Binding LargeImage}"/>

    The Items are shown correctly. But if I'm using the slider in order to minimize the Items, the SmallIcon together with the ClassName will be shown at each "minimizedItem" in the outlookbar at the bottom. I don't understand why. 

    I have seen your MVVM-Binding-Sample in which you used ItemMinimizedTemplate
            <StackPanel Orientation="Horizontal">
                     <TextBlock Text={Binding Header}/>                              

    I could use this DataTemplage and delete the TextBlock inside the StackPanel. Then only the Icon will be shown within minimized Items.
    But it seems more clean for me with my code above, instead of retemplating ItemMinimizedTemplate, ItemTemplate, HeaderTemplate etc.  The OutlookBar is bound to a CollectionView calles "OutlookEntries" which contains  a simple Class with Strings as Header and ImageSources as Icons.

    Any hints would be appreciated.
  2. John
    John avatar
    3 posts
    Member since:
    Jun 2011

    Posted 18 Jul 2011 Link to this post

    I think above text might be a bit difficult to understand, so please finde enclosed following screenshot:

    As said, using an Empty DataTemplate for "ItemMinimizedTemplate"  does help, but I guess there might be a more elegant solution.

  3. DevCraft R3 2016 release webinar banner
  4. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 20 Jul 2011 Link to this post

    Hi John,

    Your approach cannot be used because when minimized the RadOutlookBarItem transforms to MinimizedOutlookBarItem and your style cannot apply. We still think that using HeaderTemplate,Titletemplate ItemMinimizedTemplate is a very elegant MVVM solution that makes the customization of this control easier. 

    Kind regards,
    Petar Mladenov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top