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

Display image and text on Panel bar header

1 Answer 38 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Naveen T
Top achievements
Rank 1
Naveen T asked on 30 Mar 2010, 08:39 AM

Hi

I have added the below code for displaying Image and text in rad pane .Header controls are displaying good when hide but not displaying controls when the panel bar is docked instead its displaying System.Windows .Controls.StackPanel on it.

code:

 

 

 

<

 

 

telerikDocking:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" MaxWidth="500">

 

 

 

 

 

 

 

 

<telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 200" >

 

 

 

 

 

 

 

 

 

 

 

 

<telerikDocking:RadPane x:Name="GraphsH" CanUserClose="False" Margin="10" CanDockInDocumentHost="False" >

 

 

 

 

 

 

 

 

<telerikDocking:RadPane.Header>

 

 

 

 

 

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

 

 

 

 

 

<Image Source="Panel Images/ico_graph.png"></Image>

 

 

 

 

 

 

 

 

 

 

<TextBlock Text="Graphs"></TextBlock>

 

 

 

 

 

 

 

 

 

</StackPanel>

 

 

 

 

 

 

 

 

</telerikDocking:RadPane.Header>

 

 

 

 

 

 

 

 

</telerikDocking:RadPane>

 

 

 

 

 

 

 

 

</telerikDocking:RadPaneGroup>

 

 

 

 

 

 

 

 

</telerikDocking:RadSplitContainer>

 


Regards,

 

 

Nav

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 31 Mar 2010, 03:56 PM
Hi Nav,

Thank you for contacting us.

The header of the Pane is a String. So the StackPanel to show properly in the header you will have to also set the TitleTemplate.
Attached is a sample project which illustrates that.

If you need further assistance please do not hesitate to contact us again.

Best regards,
Konstantina
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.
Tags
PanelBar
Asked by
Naveen T
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or