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

Icons dont show up at runtime

1 Answer 104 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 19 Feb 2011, 02:01 AM
Hi;

I've followed the steps for showing icons on the panes headers, but none show up at runtime. Some show up at design time.
Here are two pictures showing design time and run time.

I have created proper Data Template as following:
<DataTemplate x:Key="DocumentTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding}"/>
        <Image Source="/Images/Icons/Documents-stack.png" Width="16" Height="16"/>
    </StackPanel>
</DataTemplate>

and attached the template as following:
<telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer>
        <telerik:RadPaneGroup>
            <telerik:RadPane Header="Documents" CanFloat="False" CanUserClose="False" CanUserPin="False"
            CanDockInDocumentHost="False" HeaderTemplate="{StaticResource DocumentTemplate}"/>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>

The second problem is that, for "Filing" & "viewer" pane, the icons don't show up at design time either.

Please advise!
Thanks!
..Ben

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 23 Feb 2011, 11:42 AM
Hi Ben,

Please find attached a sample project in which I have tried to reproduce the issue that you are describing. The icon is displayed as expected. Also, to make it work for the Pane outside the DocumentHost, you will have to set its TitleTemplate, instead of HeaderTemplate.
Please feel free to modify the project in order to show the issue.

Hope this helps. Please let us know if you have further questions.

Greetings,
Konstantina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Docking
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Share this question
or